mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +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
|
@Override
|
||||||
public void getDrops(NonNullList<ItemStack> drops, IBlockAccess world, BlockPos pos, IBlockState state, int fortune){
|
public void getDrops(NonNullList<ItemStack> drops, IBlockAccess world, BlockPos pos, IBlockState state, int fortune){
|
||||||
int metadata = this.getMetaFromState(state);
|
state.getValue(TYPE).wildVersionOf.getDrops(drops, world, pos, state, fortune);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue