made pushing disableable in config, php8.1+particial 8.2 comp(not recommended)

This commit is contained in:
GameHerobrine 2023-02-24 06:10:41 +03:00
parent 79831c457d
commit cb6e649081
19 changed files with 55 additions and 40 deletions

View file

@ -9,7 +9,9 @@ class PocketMinecraftServer{
*/
public $api;
private $serverip, $evCnt, $handCnt, $events, $eventsID, $handlers, $serverType, $lastTick, $memoryStats, $async = [], $asyncID = 0;
public $doTick, $levelData, $tiles, $entities, $schedule, $scheduleCnt, $whitelist, $spawn, $difficulty, $stop, $asyncThread;
function __construct($name, $gamemode = SURVIVAL, $seed = false, $port = 19132, $serverip = "0.0.0.0"){
$this->port = (int) $port;
$this->doTick = true;
@ -84,8 +86,10 @@ class PocketMinecraftServer{
"discord-bot-name" => "NostalgiaCore Logger",
"despawn-mobs" => true,
"mob-despawn-ticks" => 18000,
"entity-pushing" => false
]);
Living::$entityPushing = $this->extraprops->get("entity-pushing");
Living::$despawnMobs = $this->extraprops->get("despawn-mobs");
Living::$despawnTimer = $this->extraprops->get("mob-despawn-ticks");
Entity::$allowedAI = $this->extraprops->get("enable-mob-ai");