Fix NPC hitbox scaling for large sizes

This commit is contained in:
Kam committed 2025-10-20 14:41:45 -04:00
1 parent 111f16647d
commit 3d9b54ef5b
6 files changed
+70 -41

No files matched your search

@@ -114,8 +114,10 @@ public class EntityNpcDragon extends EntityNPCInterface {
// }
@Override
public void updateHitbox() {
width = 1.8f;
height = 1.4f;
setSize(1.8f, 1.4f);
if (width / 2 > World.MAX_ENTITY_RADIUS) {
World.MAX_ENTITY_RADIUS = width / 2;
}
}
}