Update location block vector on add and subtract

This commit is contained in:
Traks 2020-07-09 18:31:44 +02:00 committed by Alexander Söderberg
parent cfd389883b
commit 63c308971b

View file

@ -190,6 +190,7 @@ public class Location implements Cloneable, Comparable<Location> {
this.x += x;
this.y += y;
this.z += z;
this.blockVector3 = BlockVector3.at(this.x, this.y, this.z);
return this;
}
@ -231,6 +232,7 @@ public class Location implements Cloneable, Comparable<Location> {
this.x -= x;
this.y -= y;
this.z -= z;
this.blockVector3 = BlockVector3.at(this.x, this.y, this.z);
return this;
}