Skip to content

Commit

Permalink
fix dupe glitch with furnace
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed May 28, 2024
1 parent 4c9d4f1 commit fc6eb87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Game/Objects/Base/UI/Inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit fc6eb87

Please sign in to comment.