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

@@ -124,15 +124,10 @@ public class BlockPool extends BlockMod implements IWandHUD, IWandable, ILexicon
super.breakBlock(world, pos, state);
}
@Nonnull
@Override
public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, @Nonnull IBlockState state, int fortune) {
ArrayList<ItemStack> drops = new ArrayList<>();
public void getDrops(NonNullList<ItemStack> drops, IBlockAccess world, BlockPos pos, @Nonnull IBlockState state, int fortune) {
if(!lastFragile)
drops.add(new ItemStack(this, 1, state.getBlock().getMetaFromState(state)));
return drops;
}
@SideOnly(Side.CLIENT)