forked from mtcontrib/factions
Attempt callback
This commit is contained in:
parent
be4bf2cd2a
commit
1b1465e1fb
@ -55,7 +55,6 @@ function factionsmod.add_faction(name)
|
||||
factionsmod.data.factionsmod[name].invitations = {}
|
||||
factionsmod.data.factionsmod[name].owner = ""
|
||||
factionsmod.data.factionsmod[name].chunk = {}
|
||||
factionsmod.data.factionsmod[name].chunk[0] = {}
|
||||
|
||||
factionsmod.dynamic_data.membertable[name] = {}
|
||||
|
||||
@ -786,7 +785,10 @@ function factionsmod.load()
|
||||
minetest.register_on_dignode(function(pos,oldnode,digger)
|
||||
if next(factionsmod.data.factionsmod) ~= nil then
|
||||
for k,v in pairs(factionsmod.data.factionsmod) do
|
||||
--for k,v in
|
||||
for i =1, v.chunk.maxn() do
|
||||
if v.chunk[i][1] == math.floor(pos.x/16) then
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user