Fix bad mcl_ default settings
This commit is contained in:
parent
4786234c3e
commit
7b16b74903
|
@ -155,7 +155,8 @@ 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_doTileDrops") == false then
|
local doTileDrops = minetest.setting_getbool("mcl_doTileDrops") or true
|
||||||
|
if minetest.setting_getbool("creative_mode") or 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_keepInventory")
|
local keep = minetest.setting_getbool("mcl_keepInventory") or false
|
||||||
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()
|
||||||
|
|
Loading…
Reference in New Issue