diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index ad864cbc2f9..7d3a82ca267 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -154,7 +154,7 @@ function dummy(){ //If system timezone detection fails or timezone is an invalid value. if($response = Utils::getURL("http://ip-api.com/json") and $ip_geolocation_data = json_decode($response, true) - and $ip_geolocation_data['status'] != 'fail' + and $ip_geolocation_data['status'] !== 'fail' and date_default_timezone_set($ip_geolocation_data['timezone']) ){ //Again, for redundancy.