From 3741eb018a55ffd93684b81b8bcbce4f74a4de0e Mon Sep 17 00:00:00 2001 From: Lapis <45414333+Lapis256@users.noreply.github.com> Date: Sat, 20 Apr 2024 04:09:52 +0900 Subject: [PATCH] Fix to allow placement of bound entangled blocks #71 (#74) --- .../java/com/supermartijn642/entangled/EntangledBlock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/supermartijn642/entangled/EntangledBlock.java b/src/main/java/com/supermartijn642/entangled/EntangledBlock.java index b9e8c64f..b960d8fa 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){