fixed small memory leak

This commit is contained in:
GameHerobrine 2026-01-16 23:48:02 +03:00
parent f36ab5aa6c
commit 3fb4198210
2 changed files with 3 additions and 4 deletions

View file

@ -2316,7 +2316,7 @@ class Player{
$this->evid[] = $this->server->event("player.pickup", [$this, "eventHandler"]); $this->evid[] = $this->server->event("player.pickup", [$this, "eventHandler"]);
$this->evid[] = $this->server->event("tile.container.slot", [$this, "eventHandler"]); $this->evid[] = $this->server->event("tile.container.slot", [$this, "eventHandler"]);
$this->evid[] = $this->server->event("tile.update", [$this, "eventHandler"]); $this->evid[] = $this->server->event("tile.update", [$this, "eventHandler"]);
$this->server->addHandler("player.invisible", [$this, "invisibilityHandler"]); $this->evid[] = $this->server->event("player.invisible", [$this, "invisibilityHandler"]);
$this->lastMeasure = microtime(true); $this->lastMeasure = microtime(true);
$this->server->schedule(50, [$this, "measureLag"], [], true); $this->server->schedule(50, [$this, "measureLag"], [], true);
@ -3562,7 +3562,6 @@ class Player{
* @deprecated 16x16x16 chunk sending was removed * @deprecated 16x16x16 chunk sending was removed
*/ */
public static $smallChunks = false; public static $smallChunks = false;
} }
class PlayerNull extends Player{ class PlayerNull extends Player{