Skip to content

Commit

Permalink
Prevent ladle from being removed when emptying pot
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaakma committed Mar 6, 2024
1 parent 3c3c917 commit c4e5fe1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Data Files/MWSE/mods/mer/ashfall/liquid/LiquidContainer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ local dataValues = {
lastBrewUpdated = {default = nil},
lastWaterHeatUpdated = {default = nil},
stewBuffs = {default = nil},
ladle = {default = nil},
ladle = {default = nil, keepOnEmpty = true},
}

local meta = {
Expand Down Expand Up @@ -414,7 +414,9 @@ function LiquidContainer:empty()
local amountEmptied = self.waterAmount
self:setHeat(0)
for k, _ in pairs(dataValues) do
self.data[k] = nil
if not dataValues[k].keepOnEmpty then
self.data[k] = nil
end
end
self:doGraphicalUpdates()
return amountEmptied
Expand Down

0 comments on commit c4e5fe1

Please sign in to comment.