Remove Prev Selected

This commit is contained in:
Kam committed 2023-11-08 16:55:22 -05:00
1 parent bf0a856954
commit 94ffd6f5ca
1 file changed
+1 -3
@@ -27,8 +27,6 @@ public class GuiNPCEditAnimation extends GuiModelInterface implements ITextfield
public boolean playingAnimation = false;
private Frame prevFrame;
private GuiScreen parent;
private String prevSelected = "";
private long prevTick;
public GuiNPCEditAnimation(GuiScreen parent, Animation animation, EntityNPCInterface npc) {
@@ -453,7 +451,7 @@ public class GuiNPCEditAnimation extends GuiModelInterface implements ITextfield
@Override
public void close() {
if (animation != null) {
Client.sendData(EnumPacketServer.AnimationSave, prevSelected, animation.writeToNBT());
Client.sendData(EnumPacketServer.AnimationSave, animation.id, animation.writeToNBT());
}
displayGuiScreen(parent);
}