25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
|
--- ../src-base/minecraft/net/minecraft/block/BlockLog.java
|
||
|
+++ ../src-work/minecraft/net/minecraft/block/BlockLog.java
|
||
|
@@ -34,9 +34,9 @@
|
||
|
{
|
||
|
IBlockState iblockstate = p_180663_1_.func_180495_p(blockpos);
|
||
|
|
||
|
- if (iblockstate.func_185904_a() == Material.field_151584_j && !((Boolean)iblockstate.func_177229_b(BlockLeaves.field_176236_b)).booleanValue())
|
||
|
+ if (iblockstate.func_177230_c().isLeaves(iblockstate, p_180663_1_, blockpos))
|
||
|
{
|
||
|
- p_180663_1_.func_180501_a(blockpos, iblockstate.func_177226_a(BlockLeaves.field_176236_b, Boolean.valueOf(true)), 4);
|
||
|
+ iblockstate.func_177230_c().beginLeavesDecay(iblockstate, p_180663_1_, blockpos);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
@@ -69,6 +69,9 @@
|
||
|
}
|
||
|
}
|
||
|
|
||
|
+ @Override public boolean canSustainLeaves(IBlockState state, net.minecraft.world.IBlockAccess world, BlockPos pos){ return true; }
|
||
|
+ @Override public boolean isWood(net.minecraft.world.IBlockAccess world, BlockPos pos){ return true; }
|
||
|
+
|
||
|
public static enum EnumAxis implements IStringSerializable
|
||
|
{
|
||
|
X("x"),
|