mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 01:39:52 +03:00
14 lines
529 B
Diff
14 lines
529 B
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockNewLeaf.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockNewLeaf.java
|
|
@@ -106,4 +106,10 @@
|
|
super.harvestBlock(worldIn, player, pos, state, te, stack);
|
|
}
|
|
}
|
|
+
|
|
+ @Override
|
|
+ public NonNullList<ItemStack> onSheared(ItemStack item, net.minecraft.world.IBlockAccess world, BlockPos pos, int fortune)
|
|
+ {
|
|
+ return NonNullList.withSize(1, new ItemStack(this, 1, world.getBlockState(pos).getValue(VARIANT).getMetadata() - 4));
|
|
+ }
|
|
}
|