From aa2b055cf8a72be5ab951d7d5c1ef31b8676bf31 Mon Sep 17 00:00:00 2001 From: fcelsa Date: Sat, 10 Apr 2021 22:17:49 +0200 Subject: [PATCH] Added compatibility with StrawMe Mod --- src/Firewood.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Firewood.lua b/src/Firewood.lua index f5df22f..af1d4bb 100644 --- a/src/Firewood.lua +++ b/src/Firewood.lua @@ -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] @@ -227,7 +228,7 @@ function Firewood.sellingStationLoad(object, superFunc, ...) object:initPricingDynamics() end - return true + return ret end ---Add a Firewood