From 7cd5c5cde1f3061f9c6f3f721b5bdf4ece4def7b Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 24 Nov 2013 15:18:58 +0100 Subject: [PATCH] Fixed paintings resetting the hotbar --- src/material/item/generic/Painting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/item/generic/Painting.php b/src/material/item/generic/Painting.php index 6c90393fd..a82a87db3 100644 --- a/src/material/item/generic/Painting.php +++ b/src/material/item/generic/Painting.php @@ -75,7 +75,7 @@ class PaintingItem extends Item{ $e = $server->api->entity->add($level, ENTITY_OBJECT, OBJECT_PAINTING, $data); $server->api->entity->spawnToAll($e); if(($player->gamemode & 0x01) === 0x00){ - $player->removeItem($this->getID(), $this->getMetadata(), 1); + $player->removeItem($this->getID(), $this->getMetadata(), 1, false); } return true; }