Remove redundant return value from ActivatedMachine.activeUpdate

This commit is contained in:
2025-03-10 11:06:38 +01:00
parent 371ef36ce3
commit ab7d011afd
4 changed files with 6 additions and 11 deletions

View File

@@ -95,7 +95,6 @@ function industrialtest.Generator.activeUpdate(self,pos,elapsed,meta,inv)
local chargedSlot=inv:get_stack("charged",1)
local fuelSlot=inv:get_stack("src",1)
local shouldUpdateFormspec=false
local shouldRerunTimer=false
if fuelSlot:get_count()>0 and meta:get_float("fuelTime")<=0 and not industrialtest.api.isFullyCharged(meta) then
local output,after=minetest.get_craft_result({
@@ -114,10 +113,9 @@ function industrialtest.Generator.activeUpdate(self,pos,elapsed,meta,inv)
meta:set_float("fuelTime",meta:get_float("fuelTime")-elapsed)
industrialtest.api.addPower(meta,200)
shouldUpdateFormspec=true
shouldRerunTimer=true
end
return shouldRerunTimer,shouldUpdateFormspec
return shouldUpdateFormspec
end
function industrialtest.Generator.shouldActivate(self,pos)