mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Closes #1095
Probably, anyway, the crash didn't really make sense to begin with, but this is written like 900x better anyhow.
This commit is contained in:
parent
21f179aab4
commit
37753694f6
1 changed files with 1 additions and 3 deletions
|
@ -73,9 +73,7 @@ public class BlockWildPlant extends BlockBushBase{
|
|||
|
||||
@Override
|
||||
public void getDrops(NonNullList<ItemStack> 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
|
||||
|
|
Loading…
Reference in a new issue