summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 3859448..9c6268e 100644
--- a/init.lua
+++ b/init.lua
@@ -8,10 +8,7 @@ local pvp_areas_modname = minetest.get_current_modname()
local pvp_areas_store = AreaStore()
pvp_areas_store:from_file(pvp_areas_worlddir .. "/pvp_areas_store.dat")
-local pvp_default = minetest.setting_getbool("pvp_areas_enable_pvp")
-if pvp_default == nil then
- pvp_default = true
-end
+local pvp_default = minetest.is_yes(minetest.setting_getbool("pvp_areas_enable_pvp"))
minetest.log("action", "[" .. pvp_areas_modname .. "] PvP by Default: " .. tostring(pvp_default))
local pvp_areas_players = {}