diff options
author | feildmaster <admin@feildmaster.com> | 2012-08-21 20:21:01 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-08-22 14:16:51 -0500 |
commit | 98c98d0f7aee6a5bf26fd04053d018c4b62dd2b0 (patch) | |
tree | 2bc53834302b6e00d6e64ccc39fe7b98d7bb6e55 /src/main | |
parent | e3ae188ed284c029b8f32c941d840161c041e1fa (diff) | |
download | craftbukkit-98c98d0f7aee6a5bf26fd04053d018c4b62dd2b0.tar craftbukkit-98c98d0f7aee6a5bf26fd04053d018c4b62dd2b0.tar.gz craftbukkit-98c98d0f7aee6a5bf26fd04053d018c4b62dd2b0.tar.lz craftbukkit-98c98d0f7aee6a5bf26fd04053d018c4b62dd2b0.tar.xz craftbukkit-98c98d0f7aee6a5bf26fd04053d018c4b62dd2b0.zip |
Fix entities not having valid "isValid" states. Addresses BUKKIT-2366
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/minecraft/server/Entity.java | 2 | ||||
-rw-r--r-- | src/main/java/net/minecraft/server/World.java | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java index 9db77a9c..f786464a 100644 --- a/src/main/java/net/minecraft/server/Entity.java +++ b/src/main/java/net/minecraft/server/Entity.java @@ -91,7 +91,7 @@ public abstract class Entity { public boolean al; public EnumEntitySize am; public UUID uniqueId = UUID.randomUUID(); // CraftBukkit - public boolean valid = true; // CraftBukkit + public boolean valid = false; // CraftBukkit public Entity(World world) { this.id = entityCount++; diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index b3bdccc3..e3f8ed0a 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -878,6 +878,8 @@ public abstract class World implements IBlockAccess { iworldaccess.a(entity); } + + entity.valid = true; // CraftBukkit } protected void b(Entity entity) { |