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("tile.container.slot", [$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->server->schedule(50, [$this, "measureLag"], [], true);
@ -3521,7 +3521,7 @@ class Player{
}
}
}
/**
* @return string
*/
@ -3562,7 +3562,6 @@ class Player{
* @deprecated 16x16x16 chunk sending was removed
*/
public static $smallChunks = false;
}
class PlayerNull extends Player{

View file

@ -79,4 +79,4 @@ abstract class ProtocolInfo{
*/
/***REM_START***/
require_once(FILE_PATH . "src/network/raknet/RakNetDataPacket.php");
/***REM_END***/
/***REM_END***/