Switch to new getDrops

This commit is contained in:
Vincent Lee committed 2017-06-25 16:56:31 -05:00
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