HCRival/Atticus/Atticus-Server/nms-patches/PacketPlayInCloseWindow.patch
2023-09-04 17:01:05 +01:00

25 lines
690 B
Diff

--- a/net/minecraft/server/PacketPlayInCloseWindow.java
+++ b/net/minecraft/server/PacketPlayInCloseWindow.java
@@ -8,6 +8,12 @@
public PacketPlayInCloseWindow() {}
+ // CraftBukkit start
+ public PacketPlayInCloseWindow(int id) {
+ this.id = id;
+ }
+ // CraftBukkit end
+
public void a(PacketListenerPlayIn packetlistenerplayin) {
packetlistenerplayin.a(this);
}
@@ -19,8 +25,4 @@
public void b(PacketDataSerializer packetdataserializer) throws IOException {
packetdataserializer.writeByte(this.id);
}
-
- public void a(PacketListener packetlistener) {
- this.a((PacketListenerPlayIn) packetlistener);
- }
}