Finished BaseItemDoor.
This commit is contained in:
parent
0756e94e01
commit
0077a1860d
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ public abstract class BaseItemDoor extends ItemDoor {
|
|||
if (canPlace(world, pos) && canPlace(world, upPos) && player.canPlayerEdit(pos, side, stack)
|
||||
&& (player.canPlayerEdit(upPos, side, stack) && stack.stackSize > 0)
|
||||
&& ((stack.getItem() instanceof BaseItemDoor) || PocketManager.getLink(upPos, world) != null)) {
|
||||
placeDoorBlock(world, pos, EnumFacing.fromAngle(player.rotationYaw), doorBlock);
|
||||
placeDoor(world, pos, EnumFacing.fromAngle(player.rotationYaw), doorBlock);
|
||||
if (!player.capabilities.isCreativeMode) stack.stackSize--;
|
||||
return true;
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ public abstract class BaseItemDoor extends ItemDoor {
|
|||
if (player.canPlayerEdit(pos, hit.sideHit, stack) &&
|
||||
player.canPlayerEdit(downPos, hit.sideHit, stack) &&
|
||||
canPlace(world, pos) && canPlace(world, downPos)) {
|
||||
placeDoorBlock(world, downPos, EnumFacing.fromAngle(player.rotationYaw), doorBlock);
|
||||
placeDoor(world, downPos, EnumFacing.fromAngle(player.rotationYaw), doorBlock);
|
||||
if (!(stack.getItem() instanceof BaseItemDoor))
|
||||
((TileEntityDimDoor) world.getTileEntity(pos)).hasGennedPair = true;
|
||||
if (!player.capabilities.isCreativeMode) stack.stackSize--;
|
||||
|
|
Loading…
Reference in a new issue