Re-added opposite facing on shift click functionality, fixes #205
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
**Features**
|
**Features**
|
||||||
- Added X button to Processing Pattern Encoder to clear configuration of inputs and outputs
|
- Added X button to Processing Pattern Encoder to clear configuration of inputs and outputs
|
||||||
|
- Re-added opposite facing on shift click functionality
|
||||||
|
|
||||||
### 0.8.10
|
### 0.8.10
|
||||||
**Bugfixes**
|
**Bugfixes**
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ public enum EnumPlacementType {
|
|||||||
EnumFacing getFrom(BlockPos pos, EntityLivingBase entity) {
|
EnumFacing getFrom(BlockPos pos, EntityLivingBase entity) {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case ANY:
|
case ANY:
|
||||||
return BlockPistonBase.getFacingFromEntity(pos, entity);
|
EnumFacing facing = BlockPistonBase.getFacingFromEntity(pos, entity);
|
||||||
|
|
||||||
|
return entity.isSneaking() ? facing.getOpposite() : facing;
|
||||||
case HORIZONTAL:
|
case HORIZONTAL:
|
||||||
return entity.getHorizontalFacing().getOpposite();
|
return entity.getHorizontalFacing().getOpposite();
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user