mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 00:19:05 +00:00
Fix NPC hitbox scaling for large sizes
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user