From fc6eb87302b0dd110b22c5ff5cf3eea50333fcdd Mon Sep 17 00:00:00 2001 From: Kade-github <26305836+Kade-github@users.noreply.github.com> Date: Tue, 28 May 2024 12:47:26 -0700 Subject: [PATCH] fix dupe glitch with furnace --- src/Game/Objects/Base/UI/Inventory.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Game/Objects/Base/UI/Inventory.cpp b/src/Game/Objects/Base/UI/Inventory.cpp index 34de6cd..23aa003 100644 --- a/src/Game/Objects/Base/UI/Inventory.cpp +++ b/src/Game/Objects/Base/UI/Inventory.cpp @@ -794,6 +794,10 @@ void Inventory::MouseClick(int button, glm::vec2 pos) { if (player->playerData.GiveItem(output)) // inventory full, so we do nothing { + furnace.SetTag("output", "0"); + furnace.SetTag("outputCount", "-1"); + if (player->selectedBlock != nullptr) + player->selectedBlock->data = furnace; output = {}; UpdateInventory(); }