summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/util/Vector.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/util/Vector.java b/src/main/java/org/bukkit/util/Vector.java
index 215e2222..4ff0b501 100644
--- a/src/main/java/org/bukkit/util/Vector.java
+++ b/src/main/java/org/bukkit/util/Vector.java
@@ -220,9 +220,9 @@ public class Vector implements Cloneable, ConfigurationSerializable {
* @return a new midpoint vector
*/
public Vector getMidpoint(Vector other) {
- x = (x + other.x) / 2;
- y = (y + other.y) / 2;
- z = (z + other.z) / 2;
+ double x = (this.x + other.x) / 2;
+ double y = (this.y + other.y) / 2;
+ double z = (this.z + other.z) / 2;
return new Vector(x, y, z);
}