Skip to content

Commit

Permalink
Fix NPE on incorrect drop type
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jul 5, 2013
1 parent fc801c5 commit 0c3acfb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -57,7 +57,7 @@ public void onBuild(List<String> args) {
type = ItemDropType.valueOf(aH.getStringFrom(arg).toUpperCase());
dB.echoDebug("...type set to: " + type.name());
continue;
} catch (Exception e) { dB.echoDebug("...type " + type.name() + " is not valid."); }
} catch (Exception e) { dB.echoDebug("...type " + aH.getStringFrom(arg) + " is not valid."); }

} else if (aH.matchesItem(arg)) {
item = aH.getItemFrom(arg).getItemStack();
Expand Down

0 comments on commit 0c3acfb

Please sign in to comment.