Skip to content

Commit fc6eb87

Browse files
committed
fix dupe glitch with furnace
1 parent 4c9d4f1 commit fc6eb87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Game/Objects/Base/UI/Inventory.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,10 @@ void Inventory::MouseClick(int button, glm::vec2 pos)
794794
{
795795
if (player->playerData.GiveItem(output)) // inventory full, so we do nothing
796796
{
797+
furnace.SetTag("output", "0");
798+
furnace.SetTag("outputCount", "-1");
799+
if (player->selectedBlock != nullptr)
800+
player->selectedBlock->data = furnace;
797801
output = {};
798802
UpdateInventory();
799803
}

0 commit comments

Comments
 (0)