rewritten pumpkin and melon growth, fixed new world generation

This commit is contained in:
GameHerobrine 2025-06-26 08:17:14 +03:00
parent 37e2919f46
commit 756c597e47
4 changed files with 149 additions and 70 deletions

View file

@ -118,7 +118,7 @@ class Entity extends Position
public $moveStrafing, $moveForward;
function __construct(Level $level, $eid, $class, $type = 0, $data = [])
public function __construct(Level $level, $eid, $class, $type = 0, $data = [])
{
$this->random = new XorShift128Random();
$this->last = [&$this->lastX, &$this->lastY, &$this->lastZ, &$this->lastYaw, &$this->lastPitch, &$this->lastTime]; //pointers to variables
@ -202,6 +202,7 @@ class Entity extends Position
$this->outOfWorld();
}
}
public function handlePrePlayerSearcher(){
}