From 8e98bf8b62f014d4bb2dec54495d1c92efbef5ad Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Mon, 6 May 2019 14:41:09 -0500 Subject: [PATCH] Make: 2d the default protection style --- factions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/factions.lua b/factions.lua index 2f5cf27..2fdf980 100644 --- a/factions.lua +++ b/factions.lua @@ -466,10 +466,10 @@ function factions.is_online(name) end function factions.get_parcel_pos(pos) - if factions_config.protection_style == "2d" then - return math.floor(pos.x / parcel_size) * parcel_size .. "," .. math.floor(pos.z / parcel_size) * parcel_size - elseif factions_config.protection_style == "3d" then + if factions_config.protection_style == "3d" then return math.floor(pos.x / parcel_size) * parcel_size .. "," .. math.floor(pos.y / parcel_size) * parcel_size .. "," .. math.floor(pos.z / parcel_size) * parcel_size + else + return math.floor(pos.x / parcel_size) * parcel_size .. "," .. math.floor(pos.z / parcel_size) * parcel_size end end