From d3950d257ca5b1b6c1bf052aea348b6e1e24df65 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 11 Jan 2016 18:55:39 +0100 Subject: [PATCH] Fixed wild plants dropping the wrong seeds. --- .../actuallyadditions/mod/blocks/BlockWildPlant.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockWildPlant.java b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockWildPlant.java index f092a600a..ac790f06f 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockWildPlant.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockWildPlant.java @@ -48,11 +48,6 @@ public class BlockWildPlant extends BlockBushBase{ this.setStepSound(soundTypeGrass); } - @Override - public int damageDropped(IBlockState state){ - return this.getMetaFromState(state); - } - @Override protected PropertyInteger getMetaProperty(){ return META; @@ -112,7 +107,7 @@ public class BlockWildPlant extends BlockBushBase{ @Override public List getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune){ - int metadata = PosUtil.getMetadata(pos, world); + int metadata = state.getBlock().getMetaFromState(state); return metadata >= allWildPlants.length ? null : allWildPlants[metadata].wildVersionOf.getDrops(world, pos, allWildPlants[metadata].wildVersionOf.getStateFromMeta(7), fortune); }