mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-17 04:41:31 +01:00
Use 1.8.8 API
This commit is contained in:
parent
1276365a11
commit
a545c318a7
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user