Skip to content

Commit

Permalink
ensure drops is not null
Browse files Browse the repository at this point in the history
-> got removed via commit d361e08
  • Loading branch information
Pilzinsel64 committed Jan 22, 2025
1 parent af57067 commit b320dff
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public class MixinTileEntityBlockSmasher {
remap = false)
private ArrayList<ItemStack> hodgepodge$fireBlockHarvesting(ArrayList<ItemStack> drops, ItemStack lastInputStack,
@Local(ordinal = 0) Block block, @Local(ordinal = 0) ItemBlock lastInputItem) {
int metadata = lastInputItem.getMetadata(lastInputStack.getItemDamage());
if (drops == null) {
drops = block.getDrops(this._smashingWorld, 0, 0, 0, metadata, this._fortune);
}
ForgeEventFactory.fireBlockHarvesting(
drops,
this._smashingWorld,
Expand Down

0 comments on commit b320dff

Please sign in to comment.