Fixed creative crash when opening chests

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-06 00:58:46 +01:00
parent 700314d75a
commit 82f2a0f2f8

View File

@ -232,6 +232,9 @@ class BlockAPI{
if(isset(Material::$activable[$target[0]])){
switch($target[0]){
case 54:
if($this->server->gamemode === 1){
break;
}
$this->server->api->player->getByEID($data["eid"])->dataPacket(MC_CONTAINER_OPEN, array(
"windowid" => 1,
"type" => WINDOW_CHEST,