mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 13:25:10 +00:00
Linked custom hitbox data to data display and to npc
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user