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 9295e7a commit 2cf6687
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public IBlockState getStateForPlacement(World level, BlockPos placePos, EnumFaci
NBTTagCompound compound = stack.hasTagCompound() ? stack.getTagCompound().getCompoundTag("tileData") : new NBTTagCompound();
if(compound.getBoolean("bound")){
int placeDimension = level.provider.getDimension();
int targetDimension = EntangledBinderItem.getBoundDimension(stack);
BlockPos targetPos = EntangledBinderItem.getBoundPosition(stack);
int targetDimension = compound.getInteger("dimension");
BlockPos targetPos = new BlockPos(compound.getInteger("boundx"), compound.getInteger("boundy"), compound.getInteger("boundz"));
if(!canBindTo(placeDimension, placePos, targetDimension, targetPos)){
if(player instanceof EntityPlayer){
if(!DimensionManager.isDimensionRegistered(targetDimension))
Expand Down

0 comments on commit 2cf6687

Please sign in to comment.