forked from mrkubax10/industrialtest
Remove redundant return value from ActivatedMachine.activeUpdate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user