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 8a64f5e commit 8a97c64
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public BlockState getStateForPlacement(BlockItemUseContext 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)){
PlayerEntity player = context.getPlayer();
if(player != null){
Expand Down

0 comments on commit 8a97c64

Please sign in to comment.