Skip to content

Commit

Permalink
Fix to allow placement of bound entangled blocks #71 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lapis256 authored and SuperMartijn642 committed Apr 19, 2024
1 parent 4dff8b8 commit a9e019e
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(BlockItemUseContext context){
if(compound.getBoolean("bound")){
ResourceLocation placeDimension = DimensionType.getName(context.getLevel().getDimension().getType());
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)){
PlayerEntity player = context.getPlayer();
if(player != null){
Expand Down

0 comments on commit a9e019e

Please sign in to comment.