diff options
-rw-r--r-- | src/UI/SlotArea.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp index 28f3054ce..23850e3d6 100644 --- a/src/UI/SlotArea.cpp +++ b/src/UI/SlotArea.cpp @@ -2001,6 +2001,17 @@ void cSlotAreaFurnace::Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a return; } + if (a_SlotNum == 1) + { + cItem & DraggingItem = a_Player.GetDraggingItem(); + cFurnaceRecipe * FurnaceRecipes = cRoot::Get()->GetFurnaceRecipe(); + // Do not allow non-fuels to be placed in the fuel slot: + if (!FurnaceRecipes->IsFuel(DraggingItem)) + { + return; + } + } + Super::Clicked(a_Player, a_SlotNum, a_ClickAction, a_ClickedItem); } |