mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 01:49:40 +00:00
Fix AnimationSave Packet Error
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user