1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-20 07:01:22 +01:00

Dont fill up gui with filler if its air itemstack

This commit is contained in:
Zrips 2017-09-02 12:42:06 +03:00
parent 8ecc36c306
commit 5ae2a7ba74

View File

@ -154,6 +154,7 @@ public class GuiManager {
ItemStack filler = Jobs.getGCManager().guiFiller;
if (filler != null && filler.getType() != Material.AIR)
for (int y = 0; y < GuiInv.getSize(); y++) {
ItemStack item = GuiInv.getItem(y);
if (item == null || item.getType() == Material.AIR) {