Workaround crash when placing paintings

This commit is contained in:
Shoghi Cervantes 2014-08-18 13:36:59 +02:00
parent 5eee4f9771
commit 67b97ade8b

View File

@ -81,9 +81,9 @@ class Painting extends Item{
//TODO
//$e = $server->api->entity->add($level, ENTITY_OBJECT, OBJECT_PAINTING, $data);
//$e->spawnToAll();
if(($player->gamemode & 0x01) === 0x00){
/*if(($player->gamemode & 0x01) === 0x00){
$player->removeItem(Item::get($this->getID(), $this->getDamage(), 1));
}
}*/
return true;
}