mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Update location block vector on add and subtract
This commit is contained in:
parent
cfd389883b
commit
63c308971b
@ -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 New Issue
Block a user