1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-06-19 23:41:27 +02:00

HerbalismBlock could be null here.

This commit is contained in:
GJ 2013-02-05 09:57:03 -05:00
parent e46dcb69da
commit 2764368089

@ -196,7 +196,7 @@ public class Herbalism {
if (chance > Misc.getRandom().nextInt(activationChance)) { if (chance > Misc.getRandom().nextInt(activationChance)) {
Location location = block.getLocation(); Location location = block.getLocation();
if (dropItem != null && herbalismBlock.canDoubleDrop()) { if (herbalismBlock != null && dropItem != null && herbalismBlock.canDoubleDrop()) {
Misc.dropItems(location, dropItem, dropAmount); Misc.dropItems(location, dropItem, dropAmount);
} }
else if (customBlock != null){ else if (customBlock != null){