Magic Packet Fixes

This commit is contained in:
Kam committed 2025-03-03 23:03:12 -05:00
1 parent c2fa74c541
commit 4e6d6b7082
13 files changed
+177 -54

No files matched your search

@@ -20,7 +20,6 @@ import noppes.npcs.controllers.data.MagicCycle;
import noppes.npcs.entity.EntityNPCInterface;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.nbt.NBTTagCompound;
import org.lwjgl.input.Mouse;
import static noppes.npcs.client.gui.player.inventory.GuiCNPCInventory.specialIcons;
@@ -330,7 +329,7 @@ public class GuiNpcManageMagic extends GuiNPCInterface2 implements ISubGuiListen
if (scroll.id == 0) { // Left scroll: cycles
String cycleName = scroll.getSelected();
for (MagicCycle cycle : MagicController.getInstance().cycles.values()) {
if (cycle.title.equals(cycleName)) {
if (cycle.name.equals(cycleName)) {
selectedCycle = cycle;
break;
}