From 401d59115f42b3df33a84a4b12f529e25069d0ba Mon Sep 17 00:00:00 2001 From: "Luis C.M" <42545778+c0508383@users.noreply.github.com> Date: Thu, 27 Jul 2023 23:05:10 -0500 Subject: [PATCH] ItemSoulstoneFilled: -Set the cloned entity's dimension when spawned from a filled soul stone --- src/main/java/noppes/npcs/items/ItemSoulstoneFilled.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/noppes/npcs/items/ItemSoulstoneFilled.java b/src/main/java/noppes/npcs/items/ItemSoulstoneFilled.java index 5a06801b8..ba0aec640 100644 --- a/src/main/java/noppes/npcs/items/ItemSoulstoneFilled.java +++ b/src/main/java/noppes/npcs/items/ItemSoulstoneFilled.java @@ -76,6 +76,7 @@ public class ItemSoulstoneFilled extends Item { if(entity == null) return false; entity.setPosition(x + 0.5, y + 1 + 0.2F, z + 0.5); + entity.dimension = world.provider.dimensionId; if(ConfigDebug.PlayerLogging && FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER){ LogWriter.script(String.format("[%s] %s PLACED ENTITY %s", "SOULSTONE", player.getCommandSenderName(), entity)); }