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 @@ end
function industrialtest.ActivatedMachine.activeOnTimer(self,pos,elapsed)
local meta=minetest.get_meta(pos)
local inv=meta:get_inventory()
local shouldRerunTimer=false
local shouldUpdateFormspec=false
if self:shouldDeactivate(pos) then
@@ -104,12 +103,12 @@ function industrialtest.ActivatedMachine.activeOnTimer(self,pos,elapsed)
end
if self.activeUpdate then
shouldRerunTimer,shouldUpdateFormspec=self:activeUpdate(pos,elapsed,meta,inv)
shouldUpdateFormspec=self:activeUpdate(pos,elapsed,meta,inv)
end
if shouldUpdateFormspec then
self:updateFormspec(pos)
end
return shouldRerunTimer
return true
end