mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 07:35:47 +00:00
Fix #1787 Wood logs drop the wrong item when harvested with silk touch
This commit is contained in:
1 parent
1e6716f8ec
commit
8f29faa28a
1 file changed
+8
@@ -140,6 +140,14 @@ public abstract class BlockForestryLog<T extends Enum<T> & IWoodType> extends Bl
|
||||
return woodType.getHardness();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ItemStack getSilkTouchDrop(IBlockState state) {
|
||||
ItemStack silkTouchDrop = super.getSilkTouchDrop(state);
|
||||
int damage = this.damageDropped(state);
|
||||
silkTouchDrop.setItemDamage(damage);
|
||||
return silkTouchDrop;
|
||||
}
|
||||
|
||||
/* PROPERTIES */
|
||||
@Override
|
||||
public final int getFireSpreadSpeed(IBlockAccess world, BlockPos pos, EnumFacing face) {
|
||||
|
||||
Reference in new issue
Block a user