From f7f05d4175b6546f6765857ba6bf4167bc7c2a89 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 17 Apr 2013 19:32:06 +0200 Subject: [PATCH] Paintings are removed at usage --- src/material/item/generic/Painting.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/material/item/generic/Painting.php b/src/material/item/generic/Painting.php index 1dde5c70..d1234c84 100644 --- a/src/material/item/generic/Painting.php +++ b/src/material/item/generic/Painting.php @@ -60,6 +60,7 @@ class PaintingItem extends Item{ $server = ServerAPI::request(); $e = $server->api->entity->add(ENTITY_OBJECT, OBJECT_PAINTING, $data); $server->api->entity->spawnToAll($e->eid); + $player->removeItem($this->getID(), $this->getMetadata(), 1); return true; } return false;