mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 23:09:05 +00:00
ItemSoulstoneFilled:
-Set the cloned entity's dimension when spawned from a filled soul stone
This commit is contained in:
1 parent
f33260cf2d
commit
401d59115f
1 file changed
+1
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user