Group allowShortName check when checking if the short form version of 'splash' was used

This commit is contained in:
Matthew Steglinski 2015-10-29 16:42:19 -04:00
parent 607f1980a1
commit 2175cb8a44

View File

@ -336,7 +336,7 @@ public class MetaItemStack {
} else {
throw new Exception(tl("invalidPotionMeta", split[1]));
}
} else if (split[0].equalsIgnoreCase("splash") || allowShortName && split[0].equalsIgnoreCase("s")) {
} else if (split[0].equalsIgnoreCase("splash") || (allowShortName && split[0].equalsIgnoreCase("s"))) {
isSplashPotion = Boolean.valueOf(split[1]);
}