From aad14169fb5ccebbfeaa4bb57a6ab2601d98be15 Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 5 Feb 2013 10:18:24 -0500 Subject: [PATCH] Flip the order to short-circuit faster. --- src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java b/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java index 666af1b81..c069d05c2 100644 --- a/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java +++ b/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java @@ -196,7 +196,7 @@ public class Herbalism { if (chance > Misc.getRandom().nextInt(activationChance)) { Location location = block.getLocation(); - if (herbalismBlock != null && dropItem != null && herbalismBlock.canDoubleDrop()) { + if (dropItem != null && herbalismBlock != null && herbalismBlock.canDoubleDrop()) { Misc.dropItems(location, dropItem, dropAmount); } else if (customBlock != null){