Skip to content

Commit

Permalink
Added compatibility with StrawMe Mod
Browse files Browse the repository at this point in the history
  • Loading branch information
fcelsa committed Apr 10, 2021
1 parent bb173ca commit aa2b055
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Firewood.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,10 @@ end

---Add Firewood to selling stationName
function Firewood.sellingStationLoad(object, superFunc, ...)
if not superFunc(object, ...) then
return false
end
--if not superFunc(object, ...) then
-- return false
--end
local ret = superFunc(object, ...)

local aW = object.acceptedFillTypes[FillType.WHEAT]
local aB = object.acceptedFillTypes[FillType.BARLEY]
Expand All @@ -227,7 +228,7 @@ function Firewood.sellingStationLoad(object, superFunc, ...)
object:initPricingDynamics()
end

return true
return ret
end

---Add a Firewood
Expand Down

0 comments on commit aa2b055

Please sign in to comment.