Manage Magic Global Menu

This commit is contained in:
Kam committed 2025-03-04 03:28:11 -05:00
1 parent 2e9f0c1dd0
commit ab194fba22
3 files changed
+148 -86

No files matched your search

@@ -19,7 +19,7 @@ public class MagicCycle {
public MagicCycle() {}
public void readNBT(NBTTagCompound compound) {
id = compound.getInteger("CategoryID");
id = compound.getInteger("ID");
name = compound.getString("Name");
displayName = compound.getString("DisplayName");
layout = EnumDiagramLayout.values()[compound.getInteger("Layout")];
@@ -36,8 +36,8 @@ public class MagicCycle {
}
public void writeNBT(NBTTagCompound compound) {
compound.setInteger("CategoryID", id);
compound.setString("Title", name);
compound.setInteger("ID", id);
compound.setString("Name", name);
compound.setString("DisplayName", displayName);
compound.setInteger("Layout", layout.ordinal());
NBTTagList list = new NBTTagList();