mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Update location block vector on add and subtract
This commit is contained in:
parent
cfd389883b
commit
63c308971b
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue