mirror of
https://github.com/darksaid98/nightcore-spigot.git
synced 2026-12-01 14:38:47 +00:00
v2.7.2
This commit is contained in:
1 parent
eaaea371ab
commit
5d5fc08027
1 file changed
+6
-4
@@ -9,6 +9,8 @@ import su.nightexpress.nightcore.util.bukkit.NightItem;
|
||||
public class MenuItem {
|
||||
|
||||
protected NightItem item;
|
||||
protected ItemStack itemStack;
|
||||
|
||||
protected int priority;
|
||||
protected int[] slots;
|
||||
|
||||
@@ -90,16 +92,16 @@ public class MenuItem {
|
||||
@NotNull
|
||||
@Deprecated
|
||||
public ItemStack getItemStack() {
|
||||
return this.item.getTranslated();
|
||||
return this.itemStack == null ? this.item.getTranslated() : new ItemStack(this.itemStack);
|
||||
//return new ItemStack(this.itemStack);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Deprecated
|
||||
public MenuItem setItemStack(@NotNull ItemStack itemStack) {
|
||||
return this.setItem(NightItem.fromItemStack(itemStack));
|
||||
//this.itemStack = new ItemStack(itemStack);
|
||||
//return this;
|
||||
//return this.setItem(NightItem.fromItemStack(itemStack));
|
||||
this.itemStack = new ItemStack(itemStack);
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getPriority() {
|
||||
|
||||
Reference in new issue
Block a user