From 072d1063ebc32a227c2a7133b64286e311578143 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 21 Aug 2016 17:51:45 +1000 Subject: [PATCH] Fix FAVS relighting Closes #243 --- favs/src/main/java/com/thevoxelbox/voxelsniper/Sniper.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/Sniper.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/Sniper.java index b6d15176..492cd47d 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/Sniper.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/Sniper.java @@ -400,12 +400,14 @@ public class Sniper { FaweChangeSet changeSet = changeQueue.getChangeSet(); FawePlayer fp = FawePlayer.wrap(getPlayer()); LocalSession session = fp.getSession(); - baseQueue.flush(); session.remember(changeSet.toEditSession(fp)); - changeQueue.flush(); com.sk89q.worldedit.world.World worldEditWorld = fp.getWorld(); changeSet = FaweChangeSet.getDefaultChangeSet(worldEditWorld, fp.getUUID()); changeQueue.setChangeSet(changeSet); + // NEW QUEUE? + tmpWorld = null; + baseQueue = null; + changeQueue = null; } }