Fix Minimum

This commit is contained in:
Kam committed 2025-04-11 22:45:13 -04:00
1 parent f1ed8fb66f
commit cf4cbc0896
3 files changed
+10 -2

No files matched your search

@@ -407,10 +407,18 @@ public class GuiNpcManageMagic extends GuiNPCInterface2 implements ISubGuiListen
NBTTagCompound compound = new NBTTagCompound();
magic.writeNBT(compound);
PacketClient.sendClient(new MagicSavePacket(compound));
if (selectedMagic != null) {
selectedMagic = null;
if (rightScroll != null)
rightScroll.selected = -1;
}
break;
case 1: // Remove Magic.
if (selectedMagic != null) {
PacketClient.sendClient(new MagicRemovePacket(selectedMagic.id));
selectedMagic = null;
if (rightScroll != null)
rightScroll.selected = -1;
}
break;
case 2: // Edit Magic.