mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Faster level generator
This commit is contained in:
parent
4ccaccc126
commit
b3c51c6d2e
11 changed files with 71 additions and 63 deletions
|
|
@ -23,13 +23,9 @@ class Vector3{
|
|||
public $x, $y, $z;
|
||||
|
||||
public function __construct($x = 0, $y = 0, $z = 0){
|
||||
if(($x instanceof Vector3) === true){
|
||||
$this->__construct($x->x, $x->y, $x->z);
|
||||
}else{
|
||||
$this->x = $x;
|
||||
$this->y = $y;
|
||||
$this->z = $z;
|
||||
}
|
||||
$this->x = $x;
|
||||
$this->y = $y;
|
||||
$this->z = $z;
|
||||
}
|
||||
|
||||
public function getX(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue