Fixed Entities not being able to climb ladders, Closes #1535

This commit is contained in:
Lex Manos 2014-11-29 23:03:55 -08:00
parent d6d4735a70
commit cbcdbf56bb
2 changed files with 10 additions and 1 deletions

View File

@ -21,3 +21,12 @@
}
@SideOnly(Side.CLIENT)
@@ -155,6 +158,8 @@
return new BlockState(this, new IProperty[] {field_176382_a});
}
+ @Override public boolean isLadder(IBlockAccess world, BlockPos pos, EntityLivingBase entity) { return true; }
+
static final class SwitchEnumFacing
{
static final int[] field_180190_a = new int[EnumFacing.values().length];

View File

@ -357,7 +357,7 @@ public class ForgeHooks
if (isSpectator) return false;
if (!ForgeModContainer.fullBoundingBoxLadders)
{
return block != null && block.isLadder(world, pos, entity) && isSpectator;
return block != null && block.isLadder(world, pos, entity);
}
else
{