Change to Hitbox to use Scale instead

This commit is contained in:
Kam committed 2024-02-29 22:41:58 -05:00
1 parent e3c41ad856
commit 1e51d6b243
4 files changed
+26 -25

No files matched your search

@@ -1087,16 +1087,17 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
width = (width / 5f) * display.modelSize;
height = (height / 5f) * display.modelSize;
if(display.hitboxData.isHitboxEnabled()){
width = width * display.hitboxData.getWidthScale();
height = height * display.hitboxData.getHeightScale();
}
if(isKilled() && stats.hideKilledBody) {
width = 0.00001f;
}
if(width / 2 > worldObj.MAX_ENTITY_RADIUS) {
worldObj.MAX_ENTITY_RADIUS = width / 2;
}
if(display.hitboxData.isHitboxEnabled()){
width = display.hitboxData.getWidth();
height = display.hitboxData.getHeight();
}
this.setPosition(posX, posY, posZ);
}