Server: cast result of getProperty() for networkCompressionAsync

This commit is contained in:
Dylan K. Taylor 2018-05-19 10:52:09 +01:00
parent 0bb5e88b5c
commit 13cd0cdcfd

View File

@ -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);