From 8f773c0a73d37a56776fa89b8ab84493aa5e0e78 Mon Sep 17 00:00:00 2001 From: Anthony Recascino Date: Sat, 30 Jul 2016 17:20:48 -0400 Subject: [PATCH] Pushed updates. --- factionsmod.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/factionsmod.lua b/factionsmod.lua index 1299ffb..21743b4 100644 --- a/factionsmod.lua +++ b/factionsmod.lua @@ -263,7 +263,7 @@ function factionsmod.claim(name,player) local pos = player:getpos() 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],{}) + table.insert(factionsmod.data.factionsmod[name].chunk,{}) 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