1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 05:55:27 +01:00

Defaulting to Stone in case GUI item is incorrectly setup

This commit is contained in:
Zrips 2024-08-15 13:46:49 +03:00
parent 326ce9e01b
commit 7a16af1078

View File

@ -3,6 +3,7 @@ package com.gamingmesh.jobs.Gui;
import org.bukkit.inventory.ItemStack;
import net.Zrips.CMILib.Container.CMINumber;
import net.Zrips.CMILib.Items.CMIMaterial;
public class GuiItem {
@ -10,7 +11,7 @@ public class GuiItem {
private int guiSlot = -1;
public ItemStack getGuiItem() {
return guiItem;
return guiItem == null ? CMIMaterial.STONE.newItemStack() : guiItem;
}
public GuiItem setGuiItem(ItemStack guiItem) {