Allow changing gamemode without restarting the game (buggy)

This commit is contained in:
Shoghi Cervantes
2014-06-24 12:38:01 +02:00
parent ecbfff9b0f
commit fd9fdc30cb
2 changed files with 38 additions and 12 deletions

View File

@ -319,11 +319,6 @@ class PlayerInventory extends BaseInventory{
$target = [$target];
}
$holder = $this->getHolder();
if($holder instanceof Player and ($holder->getGamemode() & 0x01) === 1){
return;
}
$pk = new ContainerSetContentPacket();
$pk->slots = [];
for($i = 0; $i < $this->getSize(); ++$i){ //Do not send armor by error here