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:
parent
326ce9e01b
commit
7a16af1078
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user