Fix bad mcl_ default settings

This commit is contained in:
Wuzzy 2017-06-13 17:08:45 +02:00
parent 4786234c3e
commit 7b16b74903
2 changed files with 3 additions and 2 deletions

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

@ -1,5 +1,5 @@
minetest.register_on_dieplayer(function(player)
local keep = minetest.setting_getbool("mcl_keepInventory")
local keep = minetest.setting_getbool("mcl_keepInventory") or false
if keep == false then
local inv = player:get_inventory()
local pos = player:getpos()