mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Fixed wild plants dropping the wrong seeds.
This commit is contained in:
parent
b8b94b91f1
commit
d3950d257c
1 changed files with 1 additions and 6 deletions
|
@ -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<ItemStack> 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue