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 8eff37d commit 3741eb0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 3741eb0

Please sign in to comment.