summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/net/minecraft/server/World.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
index aa4ac1fd..c2b79fb9 100644
--- a/src/main/java/net/minecraft/server/World.java
+++ b/src/main/java/net/minecraft/server/World.java
@@ -821,6 +821,10 @@ public class World implements IBlockAccess {
return false;
}
}
+
+ if (entity instanceof EntityLiving && entity instanceof EntityWaterAnimal && !this.allowAnimals) {
+ return false;
+ }
// CraftBukkit end
if (!flag && !this.isChunkLoaded(i, j)) {
@@ -1934,13 +1938,6 @@ public class World implements IBlockAccess {
for (int i = 0; i < list.size(); ++i) {
entity = (Entity) list.get(i);
- if (entity instanceof EntityLiving && !(entity instanceof EntityPlayer)) {
- CreatureSpawnEvent event = CraftEventFactory.callCreatureSpawnEvent((EntityLiving) entity);
- if (event.isCancelled()) {
- continue;
- }
- }
-
this.entityList.add(entity);
// CraftBukkit end