1
0
Fork 0

Fix bad mcl_ default settings

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

View File

@ -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

View File

@ -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()