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