From fcf240079863aabeeee06773014e533762a57c10 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Fri, 28 Aug 2015 09:50:57 +1000 Subject: [PATCH] Fix lighting updates for chunks not sent to players --- src/main/java/com/plotsquared/bukkit/util/SendChunk.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/plotsquared/bukkit/util/SendChunk.java b/src/main/java/com/plotsquared/bukkit/util/SendChunk.java index 0724ecbcf..9f2d7349a 100644 --- a/src/main/java/com/plotsquared/bukkit/util/SendChunk.java +++ b/src/main/java/com/plotsquared/bukkit/util/SendChunk.java @@ -76,6 +76,8 @@ public class SendChunk { map.put(world, list); } list.add(chunk); + Object c = methodGetHandleChunk.of(chunk).call(); + methodInitLighting.of(c).call(); } for (PlotPlayer pp : UUIDHandler.getPlayers().values() ) { Plot plot = pp.getCurrentPlot(); @@ -107,7 +109,6 @@ public class SendChunk { continue; } Object c = methodGetHandleChunk.of(chunk).call(); - methodInitLighting.of(c).call(); chunks.remove(chunk); Object con = connection.of(entity).get(); // if (dx != 0 || dz != 0) {