mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-24 05:29:44 +00:00
readded return in reset spawn pos & some fixes to formatting
This commit is contained in:
parent
f74e6e0638
commit
ed4f820ff3
9 changed files with 25 additions and 24 deletions
|
|
@ -55,7 +55,7 @@ class PluginAPI extends stdClass{
|
|||
return;
|
||||
}
|
||||
foreach($this->plugins as $p){
|
||||
if(method_exists($p[0], "__destruct")){$p[0]->__destruct();}
|
||||
if(method_exists($p[0], "__destruct")) $p[0]->__destruct();
|
||||
}
|
||||
unset($this->plugins);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1029,6 +1029,7 @@ class Player{
|
|||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
reset_spawn_pos:
|
||||
$this->spawnPosition = $this->server->api->level->getDefault()->getSpawn();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -564,7 +564,7 @@ class Utils{
|
|||
}
|
||||
|
||||
public static function readBool($b){
|
||||
return !(Utils::readByte($b, false) === 0);
|
||||
return Utils::readByte($b, false) != 0;
|
||||
}
|
||||
|
||||
public static function writeBool($b){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue