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);
|
||||||
|
|
||||||
|
|
@ -3521,7 +3521,7 @@ class Player{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
@ -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{
|
||||||
|
|
|
||||||
|
|
@ -79,4 +79,4 @@ abstract class ProtocolInfo{
|
||||||
*/
|
*/
|
||||||
/***REM_START***/
|
/***REM_START***/
|
||||||
require_once(FILE_PATH . "src/network/raknet/RakNetDataPacket.php");
|
require_once(FILE_PATH . "src/network/raknet/RakNetDataPacket.php");
|
||||||
/***REM_END***/
|
/***REM_END***/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue