diff --git a/src/main/java/com/supermartijn642/entangled/EntangledBlock.java b/src/main/java/com/supermartijn642/entangled/EntangledBlock.java index b350de88..1a6629b9 100644 --- a/src/main/java/com/supermartijn642/entangled/EntangledBlock.java +++ b/src/main/java/com/supermartijn642/entangled/EntangledBlock.java @@ -142,8 +142,8 @@ public BlockState getStateForPlacement(BlockPlaceContext context){ if(compound.getBoolean("bound")){ ResourceLocation placeDimension = context.getLevel().dimension().location(); BlockPos placePos = context.getClickedPos(); - ResourceLocation targetDimension = EntangledBinderItem.getBoundDimension(stack); - BlockPos targetPos = EntangledBinderItem.getBoundPosition(stack); + ResourceLocation targetDimension = new ResourceLocation(compound.getString("dimension")); + BlockPos targetPos = new BlockPos(compound.getInt("boundx"), compound.getInt("boundy"), compound.getInt("boundz")); if(!canBindTo(placeDimension, placePos, targetDimension, targetPos)){ Player player = context.getPlayer(); if(player != null){