Fixed players not getting their inventory reset on gamemode change

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-18 19:33:51 +02:00
parent 724e9d9bb2
commit 78167a3cd4

View File

@ -572,6 +572,7 @@ class Player{
$this->gamemode = $gm;
$this->eventHandler("Your gamemode has been changed to ".$this->getGamemode().".", "server.chat");
}else{
$inv = array_fill(0, 36, array(AIR, 0, 0));
$this->blocked = true;
$this->gamemode = $gm;
$this->eventHandler("Your gamemode has been changed to ".$this->getGamemode().", you've to do a forced reconnect.", "server.chat");