Fix extending region typo

This commit is contained in:
Jesse Boyd 2018-04-26 05:14:41 +10:00
parent 6cec36af99
commit 29337e17d1
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 5 additions and 2 deletions

View File

@ -844,7 +844,10 @@ public class Vector implements Comparable<Vector>, 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 + ")";
}
/**

View File

@ -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);
}