mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Fixed players not getting their inventory reset on gamemode change
This commit is contained in:
parent
724e9d9bb2
commit
78167a3cd4
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user