mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 05:03:55 -07:00
Fix entities not having valid "isValid" states. Addresses BUKKIT-2366
This commit is contained in:
@@ -91,7 +91,7 @@ public abstract class Entity {
|
|||||||
public boolean al;
|
public boolean al;
|
||||||
public EnumEntitySize am;
|
public EnumEntitySize am;
|
||||||
public UUID uniqueId = UUID.randomUUID(); // CraftBukkit
|
public UUID uniqueId = UUID.randomUUID(); // CraftBukkit
|
||||||
public boolean valid = true; // CraftBukkit
|
public boolean valid = false; // CraftBukkit
|
||||||
|
|
||||||
public Entity(World world) {
|
public Entity(World world) {
|
||||||
this.id = entityCount++;
|
this.id = entityCount++;
|
||||||
|
@@ -878,6 +878,8 @@ public abstract class World implements IBlockAccess {
|
|||||||
|
|
||||||
iworldaccess.a(entity);
|
iworldaccess.a(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entity.valid = true; // CraftBukkit
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void b(Entity entity) {
|
protected void b(Entity entity) {
|
||||||
|
Reference in New Issue
Block a user