forked from mtcontrib/factions
Fix
This commit is contained in:
parent
2abfd2de59
commit
be5c4b08a5
@ -264,8 +264,8 @@ function factionsmod.claim(name,player)
|
|||||||
local is_owned = factionsmod.testifallowed(pos,nil)
|
local is_owned = factionsmod.testifallowed(pos,nil)
|
||||||
if is_owned ~= true then
|
if is_owned ~= true then
|
||||||
table.insert(factionsmod.data.factionsmod[name].chunk[#factionsmod.data.factionsmod[name].chunk + 1],{})
|
table.insert(factionsmod.data.factionsmod[name].chunk[#factionsmod.data.factionsmod[name].chunk + 1],{})
|
||||||
factionsmod.data.factionsmod[name].chunk[table.getn(chunk)][0] = math.floor(pos.x/16.0)
|
factionsmod.data.factionsmod[name].chunk[#factionsmod.data.factionsmod[name].chunk][0] = math.floor(pos.x/16.0)
|
||||||
factionsmod.data.factionsmod[name].chunk[table.getn(chunk)][1] = math.floor(pos.z/16.0)
|
factionsmod.data.factionsmod[name].chunk[#factionsmod.data.factionsmod[name].chunk][1] = math.floor(pos.z/16.0)
|
||||||
end
|
end
|
||||||
--end
|
--end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user