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 655d429 commit c37b3c2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,18 @@ 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, 1, 0, metadata, this._fortune);
}
ForgeEventFactory.fireBlockHarvesting(
drops,
this._smashingWorld,
block,
0,
1,
0,
lastInputItem.getMetadata(lastInputStack.getItemDamage()),
metadata,
this._fortune,
1.0f,
false,
Expand Down

0 comments on commit c37b3c2

Please sign in to comment.