summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/Entity.java2
-rw-r--r--src/main/java/net/minecraft/server/World.java2
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) {