Fix bad mcl_ default settings
This commit is contained in:
parent
4786234c3e
commit
7b16b74903
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue