From 1e9f197035b4ab25c94c3ffe1e5bdbf2886d59c5 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 25 Nov 2019 17:31:59 +0000 Subject: [PATCH] Fix #263 --- .../src/main/java/com/sk89q/worldedit/LocalSession.java | 2 ++ .../java/com/sk89q/worldedit/command/SelectionCommands.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java b/worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java index 0b0c1f0a9..6eec0cc87 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java @@ -471,10 +471,12 @@ public class LocalSession implements TextureHolder { if (editSession.getChangeSet() == null || limitMb == 0 || historySize >> 20 > limitMb && !append) { return; } + /* // Don't store anything if no changes were made if (editSession.size() == 0) { return; } + */ FaweChangeSet changeSet = (FaweChangeSet) editSession.getChangeSet(); if (changeSet.isEmpty()) { diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java index 847439c7a..d28f4d8bb 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java @@ -529,7 +529,7 @@ public class SelectionCommands { boolean clipboardDistr, @Switch(name = 'd', desc = "Separate blocks by state") boolean separateStates, - @ArgFlag(name = 'p', desc = "Gets page from a previous distribution.", def = "") + @ArgFlag(name = 'p', desc = "Gets page from a previous distribution.", def = "1") Integer page) throws WorldEditException { List distribution;