mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 23:04:08 +00:00
Fix Custom Entity Soulstone Positioning
This commit is contained in:
1 parent
0707873bce
commit
571a1e796d
1 file changed
+2
-2
@@ -72,12 +72,12 @@ public class ItemSoulstoneFilled extends Item {
|
||||
Entity entity = EntityList.createEntityFromNBT(compound, world);
|
||||
if(entity == null)
|
||||
return false;
|
||||
entity.setPosition(x + 0.5, y - 0.5, z + 0.5);
|
||||
entity.setPosition(x + 0.5, y + 1 + 0.2F, z + 0.5);
|
||||
if(entity instanceof EntityNPCInterface){
|
||||
EntityNPCInterface npc = (EntityNPCInterface) entity;
|
||||
npc.ai.startPos = new int[]{x, y, z};
|
||||
npc.setHealth(npc.getMaxHealth());
|
||||
npc.setPosition((float)x + 0.5F, npc.getStartYPos() - 0.5, (float)z + 0.5F);
|
||||
npc.setPosition((float)x + 0.5F, npc.getStartYPos(), (float)z + 0.5F);
|
||||
npc.advanced.soulStonePlayerName = player.getDisplayName();
|
||||
npc.advanced.soulStoneInit = true;
|
||||
if(npc.advanced.role == EnumRoleType.Companion && player != null){
|
||||
|
||||
Reference in new issue
Block a user