From be5c4b08a58b79e6c631dc22a968a1624518320c Mon Sep 17 00:00:00 2001 From: Anthony Recascino Date: Sat, 30 Jul 2016 17:05:47 -0400 Subject: [PATCH] Fix --- factionsmod.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/factionsmod.lua b/factionsmod.lua index 452b690..1299ffb 100644 --- a/factionsmod.lua +++ b/factionsmod.lua @@ -264,8 +264,8 @@ function factionsmod.claim(name,player) local is_owned = factionsmod.testifallowed(pos,nil) if is_owned ~= true then 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[table.getn(chunk)][1] = math.floor(pos.z/16.0) + factionsmod.data.factionsmod[name].chunk[#factionsmod.data.factionsmod[name].chunk][0] = math.floor(pos.x/16.0) + factionsmod.data.factionsmod[name].chunk[#factionsmod.data.factionsmod[name].chunk][1] = math.floor(pos.z/16.0) end --end end