Removed useless casts() from min/max calls

This commit is contained in:
Dylan K. Taylor
2020-02-06 15:58:27 +00:00
parent 812424a619
commit d26fcf7dee
6 changed files with 6 additions and 6 deletions

View File

@ -181,7 +181,7 @@ class MemoryManager{
* Returns the allowed chunk radius based on the current memory usage.
*/
public function getViewDistance(int $distance) : int{
return ($this->lowMemory and $this->lowMemChunkRadiusOverride > 0) ? (int) min($this->lowMemChunkRadiusOverride, $distance) : $distance;
return ($this->lowMemory and $this->lowMemChunkRadiusOverride > 0) ? min($this->lowMemChunkRadiusOverride, $distance) : $distance;
}
/**