forked from mtcontrib/factions
Closer.
This commit is contained in:
parent
e82a034462
commit
c6872edd53
@ -922,9 +922,9 @@ function factionsmod.load()
|
|||||||
minetest.register_globalstep(
|
minetest.register_globalstep(
|
||||||
function(dtime)
|
function(dtime)
|
||||||
if next(factionsmod.get_faction_list()) ~= nil then
|
if next(factionsmod.get_faction_list()) ~= nil then
|
||||||
for k in #factionsmod.get_faction_list() do
|
for k,v in pairs(factionsmod.get_faction_list()) do
|
||||||
print(factionsmod.get_faction_list()[k])
|
print(v)
|
||||||
factionsmod.data.factionsmod[factionsmod.get_faction_list()[k]].power = factionsmod.data.factionsmod[factionsmod.get_faction_list()[k]].power + (dtime/120.0)
|
factionsmod.data.factionsmod[v].power = factionsmod.data.factionsmod[v].power + (dtime/120.0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user