From 37753694f608887ebaf666f36bb348ce6f6885da Mon Sep 17 00:00:00 2001 From: Shadows_of_Fire Date: Mon, 21 May 2018 16:02:23 -0400 Subject: [PATCH] Closes #1095 Probably, anyway, the crash didn't really make sense to begin with, but this is written like 900x better anyhow. --- .../ellpeck/actuallyadditions/mod/blocks/BlockWildPlant.java | 4 +--- 1 file changed, 1 insertion(+), 3 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 ebc8ebdb6..7e7ca88df 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockWildPlant.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockWildPlant.java @@ -73,9 +73,7 @@ public class BlockWildPlant extends BlockBushBase{ @Override public void getDrops(NonNullList drops, IBlockAccess world, BlockPos pos, IBlockState state, int fortune){ - int metadata = this.getMetaFromState(state); - if(metadata < ALL_WILD_PLANTS.length) - ALL_WILD_PLANTS[metadata].wildVersionOf.getDrops(drops, world, pos, ALL_WILD_PLANTS[metadata].wildVersionOf.getDefaultState().withProperty(BlockCrops.AGE, 7), fortune); + state.getValue(TYPE).wildVersionOf.getDrops(drops, world, pos, state, fortune); } @Override