ScriptCustomItem:

-Fixed custom item visually disappearing after editing a script.
This commit is contained in:
Luis C.M committed 2023-06-01 18:12:15 -05:00
1 parent 9c5d5a8d73
commit 6febeeea02
1 file changed
+1 -1
@@ -439,7 +439,7 @@ public class ScriptCustomItem extends ScriptItemStack implements IItemCustom, IS
public void loadItemData() {
NBTTagCompound c = this.item.getTagCompound();
if (c != null){
if (c != null && !c.getCompoundTag("ItemData").hasNoTags()){
this.setItemNBT(c.getCompoundTag("ItemData"));
}
}