Correct setPosition
This commit is contained in:
parent
cc2f648804
commit
dd18d1af8a
1 changed files with 4 additions and 4 deletions
|
@ -784,10 +784,10 @@ Used when placing torches so that they face towards the drone.
|
||||||
return org.bukkit.Location(this.world, this.x, this.y, this.z);
|
return org.bukkit.Location(this.world, this.x, this.y, this.z);
|
||||||
};
|
};
|
||||||
Drone.prototype.setPosition = function(x,y,z,dir) {
|
Drone.prototype.setPosition = function(x,y,z,dir) {
|
||||||
if (x) this.x = x;
|
if (typeof x != "undefined") this.x = x;
|
||||||
if (y) this.y = y;
|
if (typeof y != "undefined") this.y = y;
|
||||||
if (z) this.z = z;
|
if (typeof z != "undefined") this.z = z;
|
||||||
if (dir) this.dir = dir;
|
if (typeof dir != "undefined") this.dir = dir;
|
||||||
};
|
};
|
||||||
//
|
//
|
||||||
// building
|
// building
|
||||||
|
|
Reference in a new issue