Linked custom hitbox data to data display and to npc

This commit is contained in:
Goodbird committed 2024-02-18 17:26:31 +03:00
1 parent 6f7f2f857d
commit d10d582a18
2 files changed
+12 -2

No files matched your search

@@ -1094,7 +1094,10 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
if(width / 2 > worldObj.MAX_ENTITY_RADIUS) {
worldObj.MAX_ENTITY_RADIUS = width / 2;
}
if(display.customHitboxData.isCustomHitbox()){
width = display.customHitboxData.getWidth();
height = display.customHitboxData.getHeight();
}
this.setPosition(posX, posY, posZ);
}