small php8.2 tweaks

This commit is contained in:
GameHerobrine 2023-08-21 04:39:44 +03:00
parent ca553d6bfd
commit d8b44469e7
3 changed files with 5 additions and 1 deletions

View file

@ -23,7 +23,7 @@ class TaskRandomWalk extends TaskBase
{
if(($ai->entity instanceof Creeper && $ai->entity->isIgnited()) || $ai->isStarted("TaskTempt")) {
$this->reset();
return false; //TODO Better way: block movement
return false; //TODO Better way: block movement
}
--$this->selfCounter;
$ai->mobController->moveNonInstant($this->x, 0, $this->z);

View file

@ -4,6 +4,8 @@ class ItemEntity extends Entity{
const TYPE = "itemSpecial";
const CLASS_TYPE = ENTITY_ITEM;
public $meta, $stack;
public function __construct(Level $level, $eid, $class, $type = 0, $data = array())
{
parent::__construct($level, $eid, $class, $type, $data);

View file

@ -14,6 +14,8 @@ class Level{
public $tiles, $blockUpdates, $nextSave, $players = [], $level, $mobSpawner, $totalMobsAmount = 0;
private $time, $startCheck, $startTime, $server, $name, $usedChunks, $changedBlocks, $changedCount, $stopTime;
public $randInt1, $randInt2;
public static $randomUpdateBlocks = [
FIRE => true,
FARMLAND => true,