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

View File

@ -25,6 +25,7 @@ import cn.nukkit.command.Command;
import cn.nukkit.command.CommandSender; import cn.nukkit.command.CommandSender;
import cn.nukkit.plugin.PluginBase; import cn.nukkit.plugin.PluginBase;
import com.boydti.fawe.Fawe; import com.boydti.fawe.Fawe;
import com.boydti.fawe.config.Settings;
import com.boydti.fawe.nukkit.optimization.FaweNukkit; import com.boydti.fawe.nukkit.optimization.FaweNukkit;
import com.google.common.base.Joiner; import com.google.common.base.Joiner;
import com.sk89q.util.yaml.YAMLProcessor; import com.sk89q.util.yaml.YAMLProcessor;
@ -74,6 +75,7 @@ public class NukkitWorldEdit extends PluginBase {
public void onEnable() { public void onEnable() {
try { try {
Fawe.set(new FaweNukkit(this)); Fawe.set(new FaweNukkit(this));
Settings.HISTORY.COMBINE_STAGES = false;
logger = Logger.getLogger(NukkitWorldEdit.class.getCanonicalName()); logger = Logger.getLogger(NukkitWorldEdit.class.getCanonicalName());
createDefaultConfiguration("config-basic.yml"); createDefaultConfiguration("config-basic.yml");
config = new NukkitConfiguration(new YAMLProcessor(new File(getDataFolder(), "config-basic.yml"), true), this); 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 @Override
public FaweQueue getNewQueue(World world, boolean fast) { public FaweQueue getNewQueue(World world, boolean fast) {
Settings.HISTORY.COMBINE_STAGES = false;
return new NukkitQueue(this, world); return new NukkitQueue(this, world);
} }
@Override @Override
public FaweQueue getNewQueue(String world, boolean fast) { public FaweQueue getNewQueue(String world, boolean fast) {
Settings.HISTORY.COMBINE_STAGES = false;
return new NukkitQueue(this, world); return new NukkitQueue(this, world);
} }