Fixed Entities not being able to climb ladders, Closes #1535
This commit is contained in:
parent
d6d4735a70
commit
cbcdbf56bb
2 changed files with 10 additions and 1 deletions
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue