Return: default metadata on move, take, put

This commit is contained in:
Coder12a
2019-05-05 17:23:45 -05:00
parent 7cb2f688a6
commit 1d57b3d0af
5 changed files with 59 additions and 47 deletions

View File

@ -489,7 +489,7 @@ end
function factions.get_faction_at(pos)
local y = pos.y
if factions_config.protection_depth_height_limit and (pos.y < factions_config.protection_max_depth or pos.y > factions_config.protection_max_height) then
return nil
return nil
end
local parcelpos = factions.get_parcel_pos(pos)
return factions.get_parcel_faction(parcelpos)