mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
updateEntity
This commit is contained in:
1 parent
9df2135894
commit
debd00c1c2
2 files changed
+6
-1
No files matched your search
@@ -915,4 +915,9 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
public boolean equals(Object object) {
|
||||
return object instanceof IEntity && ((IEntity<?>)object).getMCEntity().equals(this.entity);
|
||||
}
|
||||
|
||||
public void updateEntity() {
|
||||
IWorld world = NpcAPI.Instance().getIWorld(entity.worldObj);
|
||||
entity.dimension = world.getDimensionID();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user