mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Paintings are removed at usage
This commit is contained in:
parent
cd8211a9d3
commit
f7f05d4175
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue