diff --git a/src/main/java/com/supermartijn642/entangled/EntangledBlock.java b/src/main/java/com/supermartijn642/entangled/EntangledBlock.java index a3322c16..7a6c196d 100644 --- a/src/main/java/com/supermartijn642/entangled/EntangledBlock.java +++ b/src/main/java/com/supermartijn642/entangled/EntangledBlock.java @@ -145,8 +145,8 @@ public IBlockState getStateForPlacement(World level, BlockPos placePos, EnumFaci NBTTagCompound compound = stack.hasTagCompound() ? stack.getTagCompound().getCompoundTag("tileData") : new NBTTagCompound(); if(compound.getBoolean("bound")){ int placeDimension = level.provider.getDimension(); - int targetDimension = EntangledBinderItem.getBoundDimension(stack); - BlockPos targetPos = EntangledBinderItem.getBoundPosition(stack); + int targetDimension = compound.getInteger("dimension"); + BlockPos targetPos = new BlockPos(compound.getInteger("boundx"), compound.getInteger("boundy"), compound.getInteger("boundz")); if(!canBindTo(placeDimension, placePos, targetDimension, targetPos)){ if(player instanceof EntityPlayer){ if(!DimensionManager.isDimensionRegistered(targetDimension))