fix placing on claim edge

This commit is contained in:
Flemmli97 2020-08-24 23:24:24 +02:00
parent b5254cf8e1
commit fdd9e2fb52

View File

@ -85,6 +85,8 @@ public class BlockInteractEvents {
}
BlockPos placePos = hitResult.getBlockPos().offset(hitResult.getSide());
claim = storage.getClaimAt(placePos);
if(claim==null)
return ActionResult.PASS;
if (stack.getItem() instanceof BlockItem || stack.getItem() instanceof ToolItem || stack.getItem() == Items.ARMOR_STAND) {
if(claim.canInteract(player, EnumPermission.PLACE, placePos, true))
return ActionResult.PASS;