Fix incorrect item drop on BOP flowers

This commit is contained in:
Cheeserolls 2015-05-01 23:02:06 +01:00
parent c9df78da57
commit aeae6cb2f5
2 changed files with 14 additions and 0 deletions

View File

@ -91,6 +91,13 @@ public class BlockBOPFlower1 extends BlockDecoration {
return ((FlowerType) state.getValue(VARIANT)).ordinal();
}
// make sure the block drops the right type of flower
@Override
public int damageDropped(IBlockState state)
{
return this.getMetaFromState(state);
}
// set the size of the different flowers' bounding boxes
@Override
public void setBlockBoundsBasedOnState(IBlockAccess world, BlockPos pos)

View File

@ -79,6 +79,13 @@ public class BlockBOPFlower2 extends BlockDecoration {
return ((FlowerType) state.getValue(VARIANT)).ordinal();
}
// make sure the block drops the right type of flower
@Override
public int damageDropped(IBlockState state)
{
return this.getMetaFromState(state);
}
// set the size of the different flowers' bounding boxes
@Override
public void setBlockBoundsBasedOnState(IBlockAccess world, BlockPos pos)