Book & Sign packets

This commit is contained in:
somehussar committed 2025-02-03 04:43:41 +01:00
1 parent 4143298da3
commit 3d2a6954f9
5 files changed
+203 -40

No files matched your search

@@ -2,6 +2,8 @@ package noppes.npcs.client.gui.player;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import kamkeel.npcs.network.PacketClient;
import kamkeel.npcs.network.packets.player.SaveBookPacket;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
@@ -178,7 +180,7 @@ public class GuiBook extends GuiScreen
this.bookObj.func_150996_a(Items.written_book);
}
NoppesUtilPlayer.sendData(EnumPlayerPacket.SaveBook, x, y, z, sign, bookObj.writeToNBT(new NBTTagCompound()));
PacketClient.sendClient(new SaveBookPacket(x, y, z, sign, bookObj.writeToNBT(new NBTTagCompound())));
}
}