Lots more packet schtuff

This commit is contained in:
Kam committed 2025-02-02 17:00:32 -05:00
1 parent 601123811a
commit 55d271abad
27 files changed
+276 -190

No files matched your search

@@ -1,5 +1,7 @@
package noppes.npcs.client.gui.global;
import kamkeel.npcs.network.PacketClient;
import kamkeel.npcs.network.packets.request.animation.AnimationSavePacket;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import noppes.npcs.client.Client;
@@ -585,7 +587,7 @@ public class GuiNPCEditAnimation extends GuiModelInterface implements ITextfield
public void close() {
if (!this.hasSubGui()) {
if (animation != null) {
Client.sendData(EnumPacketServer.AnimationSave, animation.writeToNBT());
PacketClient.sendClient(new AnimationSavePacket(animation.writeToNBT()));
}
displayGuiScreen(parent);
} else {