From 29337e17d123151b49d7272a620963bc2d5733bb Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 26 Apr 2018 05:14:41 +1000 Subject: [PATCH] Fix extending region typo --- core/src/main/java/com/sk89q/worldedit/Vector.java | 5 ++++- .../regions/selector/ExtendingCuboidRegionSelector.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/sk89q/worldedit/Vector.java b/core/src/main/java/com/sk89q/worldedit/Vector.java index ac4605c7..99790c1f 100644 --- a/core/src/main/java/com/sk89q/worldedit/Vector.java +++ b/core/src/main/java/com/sk89q/worldedit/Vector.java @@ -844,7 +844,10 @@ public class Vector implements Comparable, Serializable { @Override public String toString() { - return "(" + getX() + ", " + getY() + ", " + getZ() + ")"; + String x = "" + (getX() == getBlockX() ? getBlockX() : getX()); + String y = "" + (getY() == getBlockY() ? getBlockY() : getY()); + String z = "" + (getZ() == getBlockZ() ? getBlockZ() : getZ()); + return "(" + x + ", " + y + ", " + z + ")"; } /** diff --git a/core/src/main/java/com/sk89q/worldedit/regions/selector/ExtendingCuboidRegionSelector.java b/core/src/main/java/com/sk89q/worldedit/regions/selector/ExtendingCuboidRegionSelector.java index 81ac6ce1..d13d6f6f 100644 --- a/core/src/main/java/com/sk89q/worldedit/regions/selector/ExtendingCuboidRegionSelector.java +++ b/core/src/main/java/com/sk89q/worldedit/regions/selector/ExtendingCuboidRegionSelector.java @@ -137,7 +137,7 @@ public class ExtendingCuboidRegionSelector extends CuboidRegionSelector { @Override public void explainSecondarySelection(Actor player, LocalSession session, Vector pos) { - BBC.SELECTOR_EXPANDED.send(player, 2, pos, region.getArea()); + BBC.SELECTOR_EXPANDED.send(player, pos, region.getArea()); explainRegionAdjust(player, session); }