mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-23 21:49:46 +00:00
Convert Forge to use Official mappings. Mojang released their obfuscation mappings but we have not used them up until now due to wanting to get their license to be more explicitly permissive. It is clear that their intent is to allow us to use their names for developing mods like this. See the full wording, and our interpretation here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
21 lines
770 B
Diff
21 lines
770 B
Diff
--- a/net/minecraft/block/TrapDoorBlock.java
|
|
+++ b/net/minecraft/block/TrapDoorBlock.java
|
|
@@ -147,4 +_,17 @@
|
|
|
|
return super.func_196271_a(p_196271_1_, p_196271_2_, p_196271_3_, p_196271_4_, p_196271_5_, p_196271_6_);
|
|
}
|
|
+
|
|
+ //Forge Start
|
|
+ @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_203425_a(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;
|
|
+ }
|
|
+ //Forge End
|
|
+
|
|
}
|