90, 180, 240 deg rot + structure fixes

This commit is contained in:
GameHerobrine 2023-03-04 23:42:32 +03:00
parent a07a3ed486
commit aa9080d91f
2 changed files with 68 additions and 24 deletions

View file

@ -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());
}