forked from mrkubax10/industrialtest
Don't try to check if other reactor chambers are powered if Nuclear Reactor wasn't initialized
Fixes #7
This commit is contained in:
parent
c8be496afe
commit
960b2e5b45
@ -93,6 +93,7 @@ override={
|
|||||||
if meta:get_int("meseconPowered")==1 then
|
if meta:get_int("meseconPowered")==1 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if meta:contains("chambers") then
|
||||||
local chambers=minetest.deserialize(meta:get_string("chambers"))
|
local chambers=minetest.deserialize(meta:get_string("chambers"))
|
||||||
for _,chamber in ipairs(chambers) do
|
for _,chamber in ipairs(chambers) do
|
||||||
local chamberMeta=minetest.get_meta(chamber)
|
local chamberMeta=minetest.get_meta(chamber)
|
||||||
@ -100,6 +101,7 @@ override={
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
meta:set_int("enabled",0)
|
meta:set_int("enabled",0)
|
||||||
meta:set_int("stateChanged",1)
|
meta:set_int("stateChanged",1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user