mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Server: cast result of getProperty() for networkCompressionAsync
This commit is contained in:
parent
0bb5e88b5c
commit
13cd0cdcfd
@ -1521,7 +1521,7 @@ class Server{
|
||||
$this->logger->warning("Invalid network compression level $this->networkCompressionLevel set, setting to default 7");
|
||||
$this->networkCompressionLevel = 7;
|
||||
}
|
||||
$this->networkCompressionAsync = $this->getProperty("network.async-compression", true);
|
||||
$this->networkCompressionAsync = (bool) $this->getProperty("network.async-compression", true);
|
||||
|
||||
$this->autoTickRate = (bool) $this->getProperty("level-settings.auto-tick-rate", true);
|
||||
$this->autoTickRateLimit = (int) $this->getProperty("level-settings.auto-tick-rate-limit", 20);
|
||||
|
Loading…
x
Reference in New Issue
Block a user