mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +00:00
removing more unnecessary casts
This commit is contained in:
@ -223,7 +223,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
||||
* @return void
|
||||
*/
|
||||
public function setPortCheck($name){
|
||||
$this->interface->sendOption("portChecking", (bool) $name);
|
||||
$this->interface->sendOption("portChecking", $name);
|
||||
}
|
||||
|
||||
public function handleOption(string $option, string $value) : void{
|
||||
|
@ -95,7 +95,7 @@ class PermissionAttachment{
|
||||
*/
|
||||
public function setPermissions(array $permissions){
|
||||
foreach($permissions as $key => $value){
|
||||
$this->permissions[$key] = (bool) $value;
|
||||
$this->permissions[$key] = $value;
|
||||
}
|
||||
$this->permissible->recalculatePermissions();
|
||||
}
|
||||
|
Reference in New Issue
Block a user