summaryrefslogtreecommitdiffstats
path: root/nms-patches/PacketPlayInCloseWindow.patch
blob: b7678c6d70f81e6c4fb8a20e360ef7b6b146998d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- 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);
-    }
 }