mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Fixed players not getting their inventory reset on gamemode change
This commit is contained in:
parent
724e9d9bb2
commit
78167a3cd4
1 changed files with 1 additions and 0 deletions
|
|
@ -572,6 +572,7 @@ class Player{
|
||||||
$this->gamemode = $gm;
|
$this->gamemode = $gm;
|
||||||
$this->eventHandler("Your gamemode has been changed to ".$this->getGamemode().".", "server.chat");
|
$this->eventHandler("Your gamemode has been changed to ".$this->getGamemode().".", "server.chat");
|
||||||
}else{
|
}else{
|
||||||
|
$inv = array_fill(0, 36, array(AIR, 0, 0));
|
||||||
$this->blocked = true;
|
$this->blocked = true;
|
||||||
$this->gamemode = $gm;
|
$this->gamemode = $gm;
|
||||||
$this->eventHandler("Your gamemode has been changed to ".$this->getGamemode().", you've to do a forced reconnect.", "server.chat");
|
$this->eventHandler("Your gamemode has been changed to ".$this->getGamemode().", you've to do a forced reconnect.", "server.chat");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue