From 78167a3cd48ef7f034dc6e5429f1a4f3e2a131b0 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Thu, 18 Apr 2013 19:33:51 +0200 Subject: [PATCH] Fixed players not getting their inventory reset on gamemode change --- src/Player.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Player.php b/src/Player.php index 4500187c..30f2cf1c 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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");