mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 06:52:58 +00:00
Switch to new getDrops
This commit is contained in:
1 parent
4091c7e4fb
commit
b29e95df81
14 files changed
+35
-65
No files matched your search
@@ -154,10 +154,8 @@ public class BlockFloatingSpecialFlower extends BlockFloatingFlower implements I
|
||||
world.setBlockToAir(pos);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, @Nonnull IBlockState state, int fortune) {
|
||||
ArrayList<ItemStack> list = new ArrayList<>();
|
||||
public void getDrops(NonNullList<ItemStack> list, IBlockAccess world, BlockPos pos, @Nonnull IBlockState state, int fortune) {
|
||||
TileEntity tile = world.getTileEntity(pos);
|
||||
|
||||
if(tile != null) {
|
||||
@@ -165,8 +163,6 @@ public class BlockFloatingSpecialFlower extends BlockFloatingFlower implements I
|
||||
list.add(ItemBlockSpecialFlower.ofType(new ItemStack(state.getBlock()), name));
|
||||
((TileSpecialFlower) tile).getDrops(list);
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user