mirror of
https://github.com/minetest-mods/areas.git
synced 2025-07-07 10:30:23 +02:00
add SmallJoker's modifications
This commit is contained in:
2
api.lua
2
api.lua
@ -92,7 +92,7 @@ function areas:canInteract(pos, name)
|
||||
if area.owner == name or area.open then
|
||||
return true
|
||||
elseif areas.factions_available and area.faction_open then
|
||||
if factions.version == nil or factions.version < 2 then
|
||||
if (factions.version or 0) < 2 then
|
||||
local faction_name = factions.get_player_faction(area.owner)
|
||||
if faction_name ~= nil and faction_name == factions.get_player_faction(name) then
|
||||
return true
|
||||
|
Reference in New Issue
Block a user