mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
small php8.2 tweaks
This commit is contained in:
parent
ca553d6bfd
commit
d8b44469e7
3 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue