summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2012-01-28 09:04:16 +0100
committerErik Broes <erikbroes@grum.nl>2012-01-28 09:04:16 +0100
commit9d90839723deb5808df125c6b4b23d6a8156f23d (patch)
tree4083bf15bdb6feda90bb300b41e7eb3b179b3598
parentbb730f0ee7da4dd096fa82ad77c159c7c721de89 (diff)
downloadcraftbukkit-9d90839723deb5808df125c6b4b23d6a8156f23d.tar
craftbukkit-9d90839723deb5808df125c6b4b23d6a8156f23d.tar.gz
craftbukkit-9d90839723deb5808df125c6b4b23d6a8156f23d.tar.lz
craftbukkit-9d90839723deb5808df125c6b4b23d6a8156f23d.tar.xz
craftbukkit-9d90839723deb5808df125c6b4b23d6a8156f23d.zip
Put statement inside CraftBukkit block
-rw-r--r--src/main/java/net/minecraft/server/World.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
index a0d0fc91..bae74075 100644
--- a/src/main/java/net/minecraft/server/World.java
+++ b/src/main/java/net/minecraft/server/World.java
@@ -865,8 +865,8 @@ public class World implements IBlockAccess {
}
public boolean addEntity(Entity entity, SpawnReason spawnReason) { // Changed signature, added SpawnReason
- // CraftBukkit end
if (entity == null) return false;
+ // CraftBukkit end
int i = MathHelper.floor(entity.locX / 16.0D);
int j = MathHelper.floor(entity.locZ / 16.0D);