ForgePatch/patches/minecraft/net/minecraft/block/TrapDoorBlock.java.patch

21 lines
776 B
Diff
Raw Normal View History

2019-05-23 23:02:15 +00:00
--- a/net/minecraft/block/TrapDoorBlock.java
+++ b/net/minecraft/block/TrapDoorBlock.java
2020-06-19 14:58:45 +00:00
@@ -147,4 +147,17 @@
2019-05-23 23:02:15 +00:00
return super.func_196271_a(p_196271_1_, p_196271_2_, p_196271_3_, p_196271_4_, p_196271_5_, p_196271_6_);
}
2020-06-19 14:58:45 +00:00
+
+ //Forge Start
2019-05-23 23:02:15 +00:00
+ @Override
+ public boolean isLadder(BlockState state, net.minecraft.world.IWorldReader world, BlockPos pos, net.minecraft.entity.LivingEntity entity) {
+ if (state.func_177229_b(field_176283_b)) {
+ BlockState down = world.func_180495_p(pos.func_177977_b());
+ if (down.func_177230_c() == net.minecraft.block.Blocks.field_150468_ap)
+ return down.func_177229_b(LadderBlock.field_176382_a) == state.func_177229_b(field_185512_D);
+ }
+ return false;
+ }
2020-06-19 14:58:45 +00:00
+ //Forge End
2019-06-25 02:01:03 +00:00
+
2020-06-19 14:58:45 +00:00
}