Fix FAVS relighting

Closes #243
This commit is contained in:
Jesse Boyd 2016-08-21 17:51:45 +10:00
parent 5a3182ea55
commit 072d1063eb

View File

@ -400,12 +400,14 @@ public class Sniper {
FaweChangeSet changeSet = changeQueue.getChangeSet();
FawePlayer<Object> 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;
}
}