fix getting permanently stuck on sideways fence gates in our way

This commit is contained in:
Leijurv 2018-11-20 16:32:55 -08:00
parent 3bb16de67e
commit fb971301a4
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -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) {