From 65a874136db92181b9ee9df127f67c85a394faf8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 20 May 2017 22:55:33 +0200 Subject: [PATCH] Add hidden hunger debug setting --- mods/PLAYER/mcl_hunger/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_hunger/init.lua b/mods/PLAYER/mcl_hunger/init.lua index 519242d477..c4e06ce6b7 100644 --- a/mods/PLAYER/mcl_hunger/init.lua +++ b/mods/PLAYER/mcl_hunger/init.lua @@ -10,7 +10,11 @@ if minetest.setting_getbool("enable_damage") then mcl_hunger = {} mcl_hunger.food = {} -local debug = true -- Debug Mode. If enabled, saturation and exhaustion are shown as well +-- Debug Mode. If enabled, saturation and exhaustion are shown as well +local debug = minetest.setting_getbool("mcl_hunger_debug") +if debug == nil then + debug = false +end --[[ Data value format notes: Hunger values is identical to Minecraft's and ranges from 0 to 20.