mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
90, 180, 240 deg rot + structure fixes
This commit is contained in:
parent
a07a3ed486
commit
aa9080d91f
2 changed files with 68 additions and 24 deletions
|
|
@ -15,13 +15,14 @@ class MyceliumBlock extends SolidBlock{
|
|||
}
|
||||
|
||||
public function onActivate(Item $item, Player $player){ //uwu
|
||||
/*$oldtime = microtime(1);
|
||||
if(mt_rand(0, 1) === 0){
|
||||
$time = Structures::$SMALLFARM_VILLAGE->rotate90deg($this->level, $this->x, $this->y, $this->z)->build($this->level, $this->x, $this->y, $this->z);
|
||||
}else{
|
||||
$time = Structures::$SMALLFARM_VILLAGE->build($this->level, $this->x, $this->y, $this->z);
|
||||
}
|
||||
console("builded in ".($time - $oldtime));*/
|
||||
//$oldtime = microtime(true);
|
||||
//if(mt_rand(0, 1) === 0){
|
||||
// Structures::$SMALLFARM_VILLAGE->rotate(Structure::DEG_240, $this->level)->build($this->level, $this->x, $this->y, $this->z);
|
||||
//}else{
|
||||
// Structures::$SMALLFARM_VILLAGE->build($this->level, $this->x, $this->y, $this->z);
|
||||
//}
|
||||
//$time = microtime(true);
|
||||
//console("builded in ".($time - $oldtime));
|
||||
|
||||
//(new WoodHutStructure())->build($this->level, $this->getX(), $this->getY(), $this->getZ());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue