Disable combine stages for nukkit

This commit is contained in:
Jesse Boyd 2016-10-03 03:16:04 +11:00
parent d2413daca1
commit 7886947061
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
3 changed files with 8 additions and 4 deletions

View File

@ -337,9 +337,9 @@ public class Fawe {
*/
try {
EditSession.inject(); // Custom block placer + optimizations
EditSessionEvent.inject(); // Add EditSession to event
LocalSession.inject(); // Add remember order / queue flushing
SessionManager.inject(); // Custom session saving
EditSessionEvent.inject(); // Add EditSession to event (API)
LocalSession.inject(); // Add remember order / queue flushing / Optimizations for disk
SessionManager.inject(); // Faster custom session saving + Memory improvements
Request.inject(); // Custom pattern extent
// Commands
BrushCommands.inject(); // Translations + heightmap
@ -349,7 +349,7 @@ public class Fawe {
ScriptingCommands.inject(); // Translations
SelectionCommand.inject(); // Translations + set optimizations
RegionCommands.inject(); // Translations
HistoryCommands.inject(); // Translations
HistoryCommands.inject(); // Translations + rollback command
NavigationCommands.inject(); // Translations + thru fix
ParametricBuilder.inject(); // Translations
ToolUtilCommands.inject(); // Fixes + Translations

View File

@ -25,6 +25,7 @@ import cn.nukkit.command.Command;
import cn.nukkit.command.CommandSender;
import cn.nukkit.plugin.PluginBase;
import com.boydti.fawe.Fawe;
import com.boydti.fawe.config.Settings;
import com.boydti.fawe.nukkit.optimization.FaweNukkit;
import com.google.common.base.Joiner;
import com.sk89q.util.yaml.YAMLProcessor;
@ -74,6 +75,7 @@ public class NukkitWorldEdit extends PluginBase {
public void onEnable() {
try {
Fawe.set(new FaweNukkit(this));
Settings.HISTORY.COMBINE_STAGES = false;
logger = Logger.getLogger(NukkitWorldEdit.class.getCanonicalName());
createDefaultConfiguration("config-basic.yml");
config = new NukkitConfiguration(new YAMLProcessor(new File(getDataFolder(), "config-basic.yml"), true), this);

View File

@ -97,11 +97,13 @@ public class FaweNukkit implements IFawe, Listener {
@Override
public FaweQueue getNewQueue(World world, boolean fast) {
Settings.HISTORY.COMBINE_STAGES = false;
return new NukkitQueue(this, world);
}
@Override
public FaweQueue getNewQueue(String world, boolean fast) {
Settings.HISTORY.COMBINE_STAGES = false;
return new NukkitQueue(this, world);
}