From 877ef09eedba7663b2c8e5be1e017499a6ffd5c0 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Fri, 9 Sep 2016 10:52:38 -0400 Subject: PvP by Default default false. --- init.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'init.lua') 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 = {} -- cgit v1.2.3