Fix incorrect item drop on BOP flowers
This commit is contained in:
parent
c9df78da57
commit
aeae6cb2f5
2 changed files with 14 additions and 0 deletions
|
@ -91,6 +91,13 @@ public class BlockBOPFlower1 extends BlockDecoration {
|
||||||
return ((FlowerType) state.getValue(VARIANT)).ordinal();
|
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
|
// set the size of the different flowers' bounding boxes
|
||||||
@Override
|
@Override
|
||||||
public void setBlockBoundsBasedOnState(IBlockAccess world, BlockPos pos)
|
public void setBlockBoundsBasedOnState(IBlockAccess world, BlockPos pos)
|
||||||
|
|
|
@ -79,6 +79,13 @@ public class BlockBOPFlower2 extends BlockDecoration {
|
||||||
return ((FlowerType) state.getValue(VARIANT)).ordinal();
|
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
|
// set the size of the different flowers' bounding boxes
|
||||||
@Override
|
@Override
|
||||||
public void setBlockBoundsBasedOnState(IBlockAccess world, BlockPos pos)
|
public void setBlockBoundsBasedOnState(IBlockAccess world, BlockPos pos)
|
||||||
|
|
Loading…
Reference in a new issue