From 67b97ade8b41039e96a0f5a51bb2e0e14d5692a5 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 18 Aug 2014 13:36:59 +0200 Subject: [PATCH] Workaround crash when placing paintings --- src/pocketmine/item/Painting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/item/Painting.php b/src/pocketmine/item/Painting.php index 5e15bbae1..76e1c72a5 100644 --- a/src/pocketmine/item/Painting.php +++ b/src/pocketmine/item/Painting.php @@ -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; }