@@ -1,14 +1,14 @@
|
||||
--- a/net/minecraft/server/EntityBat.java
|
||||
+++ b/net/minecraft/server/EntityBat.java
|
||||
@@ -3,6 +3,7 @@
|
||||
import java.time.LocalDate;
|
||||
@@ -4,6 +4,7 @@
|
||||
import java.time.temporal.ChronoField;
|
||||
import java.util.Random;
|
||||
import javax.annotation.Nullable;
|
||||
+import org.bukkit.craftbukkit.event.CraftEventFactory; // CraftBukkit
|
||||
|
||||
public class EntityBat extends EntityAmbient {
|
||||
|
||||
@@ -104,12 +105,20 @@
|
||||
@@ -105,12 +106,20 @@
|
||||
}
|
||||
|
||||
if (this.world.a(EntityBat.c, (EntityLiving) this) != null) {
|
||||
@@ -32,7 +32,7 @@
|
||||
}
|
||||
} else {
|
||||
if (this.d != null && (!this.world.isEmpty(this.d) || this.d.getY() < 1)) {
|
||||
@@ -133,7 +142,11 @@
|
||||
@@ -134,7 +143,11 @@
|
||||
this.bd = 0.5F;
|
||||
this.yaw += f1;
|
||||
if (this.random.nextInt(100) == 0 && this.world.getType(blockposition1).isOccluding(this.world, blockposition1)) {
|
||||
@@ -45,7 +45,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -161,7 +174,11 @@
|
||||
@@ -162,7 +175,11 @@
|
||||
return false;
|
||||
} else {
|
||||
if (!this.world.isClientSide && this.isAsleep()) {
|
||||
|
||||
Reference in New Issue
Block a user