Fixed issue #750 about custom model data in Atribute view.

This commit is contained in:
Ka0rX 2023-03-26 21:14:29 +01:00
parent 588665f0b7
commit c59473502f

View File

@ -130,7 +130,7 @@ public abstract class InventoryItem<T extends GeneratedInventory> {
} }
public ItemStack display(T inv) { public ItemStack display(T inv) {
return display(inv, 0); return display(inv, modelData);
} }
public ItemStack display(T inv, int n) { public ItemStack display(T inv, int n) {
@ -138,7 +138,7 @@ public abstract class InventoryItem<T extends GeneratedInventory> {
} }
public ItemStack display(T inv, int n, Material specificMaterial) { 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) { public ItemStack display(T inv, int n, Material specificMaterial, int modelData) {