Some structure fixes

This commit is contained in:
ArkQuark 2023-03-04 22:44:32 +03:00
parent 1a383de853
commit a07a3ed486
3 changed files with 14 additions and 9 deletions

View file

@ -15,11 +15,13 @@ class MyceliumBlock extends SolidBlock{
}
public function onActivate(Item $item, Player $player){ //uwu
/*if(mt_rand(0, 1) === 0){
Structures::$SMALLFARM_VILLAGE->rotate90deg($this->level, $this->x, $this->y, $this->z)->build($this->level, $this->x, $this->y, $this->z);
/*$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{
Structures::$SMALLFARM_VILLAGE->build($this->level, $this->x, $this->y, $this->z);
}*/
$time = Structures::$SMALLFARM_VILLAGE->build($this->level, $this->x, $this->y, $this->z);
}
console("builded in ".($time - $oldtime));*/
//(new WoodHutStructure())->build($this->level, $this->getX(), $this->getY(), $this->getZ());
}