Re-added opposite facing on shift click functionality, fixes #205
This commit is contained in:
@@ -25,7 +25,9 @@ public enum EnumPlacementType {
|
||||
EnumFacing getFrom(BlockPos pos, EntityLivingBase entity) {
|
||||
switch (this) {
|
||||
case ANY:
|
||||
return BlockPistonBase.getFacingFromEntity(pos, entity);
|
||||
EnumFacing facing = BlockPistonBase.getFacingFromEntity(pos, entity);
|
||||
|
||||
return entity.isSneaking() ? facing.getOpposite() : facing;
|
||||
case HORIZONTAL:
|
||||
return entity.getHorizontalFacing().getOpposite();
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user