From c5fc8c6ef805e3549d0ac36d09080b4b2d4b0c48 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 28 Aug 2016 01:40:23 +1000 Subject: [PATCH] *Forgot vectors weren't mutable --- .../java/com/sk89q/worldedit/command/HistoryCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/HistoryCommands.java b/core/src/main/java/com/sk89q/worldedit/command/HistoryCommands.java index 5c550b35..79fd5a4f 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/HistoryCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/HistoryCommands.java @@ -139,9 +139,9 @@ public class HistoryCommands { World world = player.getWorld(); WorldVector origin = player.getPosition(); Vector bot = origin.subtract(radius, radius, radius); - bot.setY(Math.max(0, bot.getY())); + bot = bot.setY(Math.max(0, bot.getY())); Vector top = origin.add(radius, radius, radius); - top.setY(Math.min(255, top.getY())); + top = top.setY(Math.min(255, top.getY())); RollbackDatabase database = DBHandler.IMP.getDatabase(world); final AtomicInteger count = new AtomicInteger(); database.getPotentialEdits(other, System.currentTimeMillis() - timeDiff, bot, top, new RunnableVal() {