Rename setting name

This commit is contained in:
Wuzzy 2017-06-09 14:11:16 +02:00
parent 5d5743939f
commit b2b196bccd
3 changed files with 6 additions and 6 deletions

@ -139,7 +139,7 @@ minetest.register_globalstep(function(dtime)
end) end)
function minetest.handle_node_drops(pos, drops, digger) function minetest.handle_node_drops(pos, drops, digger)
if minetest.setting_getbool("creative_mode") or minetest.setting_getbool("mcl_do_tile_drops") == false then if minetest.setting_getbool("creative_mode") or minetest.setting_getbool("mcl_doTileDrops") == false then
return return
end end
for _,item in ipairs(drops) do for _,item in ipairs(drops) do

@ -1,5 +1,5 @@
minetest.register_on_dieplayer(function(player) minetest.register_on_dieplayer(function(player)
local keep = minetest.setting_getbool("mcl_keep_inventory_on_death") local keep = minetest.setting_getbool("mcl_keepInventory")
if keep == false then if keep == false then
local inv = player:get_inventory() local inv = player:get_inventory()
local pos = player:getpos() local pos = player:getpos()
@ -20,7 +20,7 @@ minetest.register_on_dieplayer(function(player)
end end
-- Death message -- Death message
local message = minetest.setting_getbool("mcl_show_death_messages") local message = minetest.setting_getbool("mcl_showDeathMessages")
if message == nil then message = true end if message == nil then message = true end
if message then if message then
local name = player:get_player_name() local name = player:get_player_name()

@ -19,14 +19,14 @@ flame_sound (Flame sound) bool true
# If enabled, breaking blocks will cause them to drop as item. # If enabled, breaking blocks will cause them to drop as item.
# Note that blocks never have drops when in Creative Mode. # Note that blocks never have drops when in Creative Mode.
mcl_do_tile_drops (Blocks have drops) bool true mcl_doTileDrops (Blocks have drops) bool true
# Normally, players drop all their items when they die. Enable this # Normally, players drop all their items when they die. Enable this
# setting, so players always keep their inventory on death. # setting, so players always keep their inventory on death.
mcl_keep_inventory_on_death (Keep inventory on death) bool false mcl_keepInventory (Keep inventory on death) bool false
# If enabled, chat messages are shown to everyone when a player dies. # If enabled, chat messages are shown to everyone when a player dies.
mcl_show_death_messages (Show death messages) bool true mcl_showDeathMessages (Show death messages) bool true
# If enabled, only peaceful mobs will appear naturally. This does not # If enabled, only peaceful mobs will appear naturally. This does not
# affect monster spawners. # affect monster spawners.