diff --git a/src/main/java/com/sk89q/worldedit/Vector.java b/src/main/java/com/sk89q/worldedit/Vector.java index 4b31da0e2..ffd4454bb 100644 --- a/src/main/java/com/sk89q/worldedit/Vector.java +++ b/src/main/java/com/sk89q/worldedit/Vector.java @@ -508,7 +508,7 @@ public boolean containedWithin(Vector min, Vector max) { public boolean containedWithinBlock(Vector min, Vector max) { return getBlockX() >= min.getBlockX() && getBlockX() <= max.getBlockX() && getBlockY() >= min.getBlockY() && getBlockY() <= max.getBlockY() - && getBlockZ() >= min.getBlockZ() && getBlockZ() <= max.getBlockY(); + && getBlockZ() >= min.getBlockZ() && getBlockZ() <= max.getBlockZ(); } /** diff --git a/src/main/java/com/sk89q/worldedit/Vector2D.java b/src/main/java/com/sk89q/worldedit/Vector2D.java index c2c69bcb2..099c24da7 100644 --- a/src/main/java/com/sk89q/worldedit/Vector2D.java +++ b/src/main/java/com/sk89q/worldedit/Vector2D.java @@ -165,7 +165,7 @@ public boolean equals(Object obj) { if (!(obj instanceof Vector2D)) { return false; } - Vector other = (Vector) obj; + Vector2D other = (Vector2D) obj; return other.x == this.x && other.z == this.z; }