diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 = {} |