mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 11:29: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
@@ -17,8 +17,10 @@ public class EntityNpcSlime extends EntityNPCInterface {
|
||||
|
||||
@Override
|
||||
public void updateHitbox() {
|
||||
width = 0.8f;
|
||||
height = 0.8f;
|
||||
setSize(0.8f, 0.8f);
|
||||
if (width / 2 > World.MAX_ENTITY_RADIUS) {
|
||||
World.MAX_ENTITY_RADIUS = width / 2;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user