mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 21:54:08 +00:00
Informed IsGuiOpen
This commit is contained in:
1 parent
47e30ac8b4
commit
601123811a
3 files changed
+6
-7
No files matched your search
@@ -228,6 +228,7 @@ public class PacketHandler {
|
||||
REQUEST_PACKET.registerPacket(new TransformLoadPacket());
|
||||
|
||||
// Other Packets
|
||||
REQUEST_PACKET.registerPacket(new IsGuiOpenInform());
|
||||
REQUEST_PACKET.registerPacket(new GuiRequestPacket());
|
||||
REQUEST_PACKET.registerPacket(new DimensionsGetPacket());
|
||||
REQUEST_PACKET.registerPacket(new AnimationCachePacket());
|
||||
|
||||
+3
-3
@@ -13,15 +13,15 @@ import noppes.npcs.controllers.data.PlayerData;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public final class IsGuiOpenPacket extends AbstractPacket {
|
||||
public final class IsGuiOpenInform extends AbstractPacket {
|
||||
public static final String packetName = "Request|IsGuiOpen";
|
||||
|
||||
private boolean isOpen;
|
||||
|
||||
public IsGuiOpenPacket() {
|
||||
public IsGuiOpenInform() {
|
||||
}
|
||||
|
||||
public IsGuiOpenPacket(boolean isOpen) {
|
||||
public IsGuiOpenInform(boolean isOpen) {
|
||||
this.isOpen = isOpen;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package noppes.npcs.client;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import kamkeel.npcs.network.PacketClient;
|
||||
import kamkeel.npcs.network.packets.request.GuiRequestPacket;
|
||||
import kamkeel.npcs.network.packets.request.IsGuiOpenPacket;
|
||||
import kamkeel.npcs.network.packets.request.IsGuiOpenInform;
|
||||
import kamkeel.npcs.util.ByteBufUtils;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
||||
@@ -22,7 +22,6 @@ import noppes.npcs.client.gui.util.GuiNPCInterface;
|
||||
import noppes.npcs.client.gui.util.IScrollData;
|
||||
import noppes.npcs.client.gui.util.IScrollGroup;
|
||||
import noppes.npcs.constants.EnumGuiType;
|
||||
import noppes.npcs.constants.EnumPacketServer;
|
||||
import noppes.npcs.controllers.data.Dialog;
|
||||
import noppes.npcs.controllers.data.Quest;
|
||||
import noppes.npcs.controllers.data.SkinOverlay;
|
||||
@@ -269,7 +268,6 @@ public class NoppesUtil {
|
||||
}
|
||||
|
||||
public static void isGUIOpen(boolean isGUIOpen) {
|
||||
PacketClient.sendClient(new IsGuiOpenPacket(isGUIOpen));
|
||||
Client.sendData(EnumPacketServer.IsGuiOpen, isGUIOpen);
|
||||
PacketClient.sendClient(new IsGuiOpenInform(isGUIOpen));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user