Better args for protection style.

This commit is contained in:
Coder12a
2018-10-17 21:40:00 -05:00
parent 279d51037b
commit 67494969a3
3 changed files with 6 additions and 6 deletions

View File

@ -670,9 +670,9 @@ function factions.Faction.on_revoke_invite(self, player)
end
function factions.get_parcel_pos(pos)
if factions_config.protection_style == "classic" then
if factions_config.protection_style == "2d" then
return math.floor(pos.x / factions_config.parcel_size)..","..math.floor(pos.z / factions_config.parcel_size)
elseif factions_config.protection_style == "pb-style" then
elseif factions_config.protection_style == "3d" then
return math.floor(pos.x / factions_config.parcel_size)..","..math.floor(pos.y / factions_config.parcel_size)..","..math.floor(pos.z / factions_config.parcel_size)
end
end