mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
fixed small memory leak
This commit is contained in:
parent
f36ab5aa6c
commit
3fb4198210
2 changed files with 3 additions and 4 deletions
|
|
@ -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{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue