HUGE CORE COMMIT

This commit is contained in:
Kam committed 2026-03-13 15:18:13 -04:00
1 parent 57e6934fe5
commit 43a52ad407
125 files changed
+1801 -413

No files matched your search

@@ -10,6 +10,7 @@ import noppes.npcs.api.item.IItemStack;
import noppes.npcs.controllers.LinkedItemController;
import noppes.npcs.controllers.TagController;
import noppes.npcs.scripted.NpcAPI;
import noppes.npcs.wrapper.nbt.MC1710NBTCompound;
import noppes.npcs.scripted.item.ScriptLinkedItem;
import java.util.HashSet;
@@ -57,7 +58,7 @@ public class LinkedItem implements ILinkedItem {
compound.setInteger("Version", this.version);
compound.setString("Name", this.name);
compound.setTag("Display", this.display.writeToNBT());
compound.setTag("Display", ((MC1710NBTCompound) this.display.writeToNBT()).getMCTag());
compound.setDouble("DurabilityValue", this.durabilityValue);
compound.setInteger("MaxStackSize", this.stackSize);
@@ -90,7 +91,7 @@ public class LinkedItem implements ILinkedItem {
this.name = compound.getString("Name");
this.version = compound.getInteger("Version");
this.display.readFromNBT(compound.getCompoundTag("Display"));
this.display.readFromNBT(new MC1710NBTCompound(compound.getCompoundTag("Display")));
this.durabilityValue = compound.getDouble("DurabilityValue");
this.stackSize = compound.getInteger("MaxStackSize");