Add require_protection and node_ownership_legacy settings

require_protection: Disallows interactions outside of owned areas
node_ownership_legacy: Skip 9+ year old compatibility code by default
This commit is contained in:
SmallJoker
2022-03-25 22:00:07 +01:00
parent 4018c0d204
commit f52454edec
4 changed files with 38 additions and 18 deletions

View File

@ -16,7 +16,9 @@ dofile(areas.modpath.."/internal.lua")
dofile(areas.modpath.."/chatcommands.lua")
dofile(areas.modpath.."/pos.lua")
dofile(areas.modpath.."/interact.lua")
dofile(areas.modpath.."/legacy.lua")
if areas.config.node_ownership_legacy then
dofile(areas.modpath.."/legacy.lua")
end
dofile(areas.modpath.."/hud.lua")
areas:load()