HerbalismBlock could be null here.

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

View File

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