ItemSoulstoneFilled:

-Fixed soulstoned flying NPCs dipping into the ground
This commit is contained in:
Luis C.M committed 2022-11-14 20:28:19 -06:00
1 parent 69afa29e9c
commit a9ade876ef
1 file changed
+1 -1
@@ -83,7 +83,7 @@ public class ItemSoulstoneFilled extends Item {
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){