Skip to content

Commit

Permalink
Fix to allow placement of bound entangled blocks SuperMartijn642#71
Browse files Browse the repository at this point in the history
  • Loading branch information
Lapis256 committed Mar 14, 2024
1 parent 6edeaf8 commit f675f54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,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){
Expand Down

0 comments on commit f675f54

Please sign in to comment.