Fix AnimationSave Packet Error

This commit is contained in:
Kam committed 2023-11-09 15:34:12 -05:00
1 parent d1c728a927
commit 21f9e3bdbc
2 files changed
+1 -2

No files matched your search

@@ -477,7 +477,7 @@ public class GuiNPCEditAnimation extends GuiModelInterface implements ITextfield
public void close() {
if (!this.hasSubGui()) {
if (animation != null) {
Client.sendData(EnumPacketServer.AnimationSave, animation.id, animation.writeToNBT());
Client.sendData(EnumPacketServer.AnimationSave, animation.writeToNBT());
}
displayGuiScreen(parent);
} else {
@@ -234,7 +234,6 @@ public class GuiNPCManageAnimations extends GuiModelInterface2 implements IScrol
public void customScrollClicked(int i, int j, int k, GuiCustomScroll guiCustomScroll) {
if(guiCustomScroll.id == 0)
{
save();
selected = scrollAnimations.getSelected();
Client.sendData(EnumPacketServer.AnimationGet, data.get(selected));
}