mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49: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
|
|
@ -4,6 +4,8 @@ class ItemEntity extends Entity{
|
||||||
const TYPE = "itemSpecial";
|
const TYPE = "itemSpecial";
|
||||||
const CLASS_TYPE = ENTITY_ITEM;
|
const CLASS_TYPE = ENTITY_ITEM;
|
||||||
|
|
||||||
|
public $meta, $stack;
|
||||||
|
|
||||||
public function __construct(Level $level, $eid, $class, $type = 0, $data = array())
|
public function __construct(Level $level, $eid, $class, $type = 0, $data = array())
|
||||||
{
|
{
|
||||||
parent::__construct($level, $eid, $class, $type, $data);
|
parent::__construct($level, $eid, $class, $type, $data);
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ class Level{
|
||||||
public $tiles, $blockUpdates, $nextSave, $players = [], $level, $mobSpawner, $totalMobsAmount = 0;
|
public $tiles, $blockUpdates, $nextSave, $players = [], $level, $mobSpawner, $totalMobsAmount = 0;
|
||||||
private $time, $startCheck, $startTime, $server, $name, $usedChunks, $changedBlocks, $changedCount, $stopTime;
|
private $time, $startCheck, $startTime, $server, $name, $usedChunks, $changedBlocks, $changedCount, $stopTime;
|
||||||
|
|
||||||
|
public $randInt1, $randInt2;
|
||||||
|
|
||||||
public static $randomUpdateBlocks = [
|
public static $randomUpdateBlocks = [
|
||||||
FIRE => true,
|
FIRE => true,
|
||||||
FARMLAND => true,
|
FARMLAND => true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue