diff --git a/src/material/item/generic/Painting.php b/src/material/item/generic/Painting.php index 1dde5c70e..d1234c844 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;