mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-07 00:38:42 +01:00
Lets check by more air types
This commit is contained in:
parent
e27afceded
commit
0e6a8afbb7
@ -228,10 +228,12 @@ public class CMIGui {
|
|||||||
|
|
||||||
public void addEmptyButton(int slot) {
|
public void addEmptyButton(int slot) {
|
||||||
ItemStack MiscInfo = filler.newItemStack();
|
ItemStack MiscInfo = filler.newItemStack();
|
||||||
if (!MiscInfo.getType().equals(org.bukkit.Material.AIR)) {
|
if (!CMIMaterial.isAir(MiscInfo.getType())) {
|
||||||
ItemMeta MiscInfoMeta = MiscInfo.getItemMeta();
|
ItemMeta MiscInfoMeta = MiscInfo.getItemMeta();
|
||||||
MiscInfoMeta.setDisplayName(" ");
|
if (MiscInfoMeta != null) {
|
||||||
MiscInfo.setItemMeta(MiscInfoMeta);
|
MiscInfoMeta.setDisplayName(" ");
|
||||||
|
MiscInfo.setItemMeta(MiscInfoMeta);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
addButton(new CMIGuiButton(slot, GUIFieldType.Locked, MiscInfo));
|
addButton(new CMIGuiButton(slot, GUIFieldType.Locked, MiscInfo));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user