From c59473502f9888b86b7505165684633139291178 Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Sun, 26 Mar 2023 21:14:29 +0100 Subject: [PATCH] Fixed issue #750 about custom model data in Atribute view. --- .../java/net/Indyuce/mmocore/gui/api/item/InventoryItem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/api/item/InventoryItem.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/api/item/InventoryItem.java index df1d90f3..f585e5dc 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/api/item/InventoryItem.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/api/item/InventoryItem.java @@ -130,7 +130,7 @@ public abstract class InventoryItem { } public ItemStack display(T inv) { - return display(inv, 0); + return display(inv, modelData); } public ItemStack display(T inv, int n) { @@ -138,7 +138,7 @@ public abstract class InventoryItem { } public ItemStack display(T inv, int n, Material specificMaterial) { - return display(inv, n, specificMaterial, 0); + return display(inv, n, specificMaterial, modelData); } public ItemStack display(T inv, int n, Material specificMaterial, int modelData) {