From d5cf81be5ced28cd041e38a9b5a3e71eb890895e Mon Sep 17 00:00:00 2001 From: MattBDev Date: Wed, 11 May 2016 12:11:46 -0400 Subject: [PATCH] 1.9.4 compatibility. --- .../src/main/java/com/plotsquared/bukkit/util/SendChunk.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/SendChunk.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/SendChunk.java index 21ff09240..35e9d7f62 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/SendChunk.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/SendChunk.java @@ -51,7 +51,7 @@ public class SendChunk { this.methodInitLighting = classChunk.getMethod("initLighting"); RefClass classMapChunk = getRefClass("{nms}.PacketPlayOutMapChunk"); if (PS.get().checkVersion(PS.get().IMP.getServerVersion(), 1, 9, 4)) { - this.mapChunk = null; //todo + this.mapChunk = classMapChunk.getConstructor(classChunk.getRealClass(),int.class); } else { this.mapChunk = classMapChunk.getConstructor(classChunk.getRealClass(), boolean.class, int.class); } @@ -111,7 +111,7 @@ public class SendChunk { Object con = this.connection.of(entity).get(); Object packet; if (PS.get().checkVersion(PS.get().IMP.getServerVersion(), 1, 9, 4)) { - packet = null; //todo + packet = this.mapChunk.create(c,65535); } else { packet = this.mapChunk.create(c, true, 65535); }