summaryrefslogtreecommitdiffstats
path: root/nms-patches/PacketPlayInCloseWindow.patch
blob: f8d7a42afafdf05c752ce4aa2b4ab655f60902ea (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
25
26
27
@@ -6,6 +6,17 @@
 
     public PacketPlayInCloseWindow() {}
 
+    // CraftBukkit start
+    @Override
+    public void a(PacketListener pl) {
+        a((PacketListenerPlayIn) pl);
+    }    
+    
+    public PacketPlayInCloseWindow(int id) {
+        this.id = id;
+    }
+    // CraftBukkit end
+
     public void a(PacketListenerPlayIn packetlistenerplayin) {
         packetlistenerplayin.a(this);
     }
@@ -17,8 +28,4 @@
     public void b(PacketDataSerializer packetdataserializer) {
         packetdataserializer.writeByte(this.id);
     }
-
-    public void a(PacketListener packetlistener) {
-        this.a((PacketListenerPlayIn) packetlistener);
-    }
 }