fix getting permanently stuck on sideways fence gates in our way
This commit is contained in:
parent
3bb16de67e
commit
fb971301a4
@ -200,7 +200,7 @@ public interface MovementHelper extends ActionCosts, Helper {
|
||||
return true;
|
||||
}
|
||||
|
||||
return isHorizontalBlockPassable(gatePos, state, playerPos, BlockFenceGate.OPEN);
|
||||
return state.getValue(BlockFenceGate.OPEN);
|
||||
}
|
||||
|
||||
static boolean isHorizontalBlockPassable(BlockPos blockPos, IBlockState blockState, BlockPos playerPos, PropertyBool propertyOpen) {
|
||||
|
Loading…
Reference in New Issue
Block a user