Use 1.8.8 API

This commit is contained in:
fullwall 2018-10-14 21:50:19 +08:00
parent 1276365a11
commit a545c318a7

View File

@ -181,7 +181,7 @@ public class Util {
return true;
for (String part : Splitter.on(',').split(parts)) {
if ((SpigotUtil.isUsing1_13API() ? Material.matchMaterial(part, true)
: Material.matchMaterial(part)) == player.getInventory().getItemInMainHand().getType()) {
: Material.matchMaterial(part)) == player.getInventory().getItemInHand().getType()) {
return true;
}
}