Skip to content

Commit

Permalink
somebody did a dumb - for #1585
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 11, 2017
1 parent 9d5c298 commit 2e3a71e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2749,7 +2749,7 @@ else if (split.length > 1 && new Element(split[1]).isBoolean()) {
if (!value.asString().isEmpty()) {
String[] split = value.asString().split("[\\|" + dList.internal_escape + "]", 3);
if (split.length > 0 && new Element(split[0]).matchesType(dEntity.class)) {
String slot = split[1].toUpperCase();
String slot = split.length > 1 ? split[1].toUpperCase() : null;
if (split.length > 1 && (new Element(slot).matchesEnum(EquipmentSlot.values())
|| slot.equals("MAIN_HAND") || slot.equals("BOOTS"))) {
if (split.length > 2 && new Element(split[2]).matchesType(dItem.class)) {
Expand Down

0 comments on commit 2e3a71e

Please sign in to comment.