Fix other boolean settings default fails
This commit is contained in:
parent
7e9a9821c9
commit
6188d7b528
|
@ -212,7 +212,7 @@ function minetest.handle_node_drops(pos, drops, digger)
|
||||||
-- This means there is no digger. This is a special case which allows this function to be called
|
-- This means there is no digger. This is a special case which allows this function to be called
|
||||||
-- by hand. Creative Mode is intentionally ignored in this case.
|
-- by hand. Creative Mode is intentionally ignored in this case.
|
||||||
|
|
||||||
local doTileDrops = minetest.settings:get_bool("mcl_doTileDrops") or true
|
local doTileDrops = minetest.settings:get_bool("mcl_doTileDrops", true)
|
||||||
if (digger ~= nil and minetest.settings:get_bool("creative_mode")) or doTileDrops == false then
|
if (digger ~= nil and minetest.settings:get_bool("creative_mode")) or doTileDrops == false then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,7 +4,7 @@ local mg_seed = minetest.get_mapgen_setting("seed")
|
||||||
-- Some mapgen settings
|
-- Some mapgen settings
|
||||||
local superflat = mg_name == "flat" and minetest.get_mapgen_setting("mcl_superflat_classic") == "true"
|
local superflat = mg_name == "flat" and minetest.get_mapgen_setting("mcl_superflat_classic") == "true"
|
||||||
|
|
||||||
local generate_fallen_logs = minetest.settings:get_bool("mcl_generate_fallen_logs") or false
|
local generate_fallen_logs = minetest.settings:get_bool("mcl_generate_fallen_logs", false)
|
||||||
|
|
||||||
-- Jungle bush schematic. In PC/Java Edition it's Jungle Wood + Oak Leaves
|
-- Jungle bush schematic. In PC/Java Edition it's Jungle Wood + Oak Leaves
|
||||||
local jungle_bush_schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_bush_oak_leaves.mts"
|
local jungle_bush_schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_bush_oak_leaves.mts"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
minetest.register_on_dieplayer(function(player)
|
minetest.register_on_dieplayer(function(player)
|
||||||
local keep = minetest.settings:get_bool("mcl_keepInventory") or false
|
local keep = minetest.settings:get_bool("mcl_keepInventory", false)
|
||||||
if keep == false then
|
if keep == false then
|
||||||
-- Drop inventory, crafting grid and armor
|
-- Drop inventory, crafting grid and armor
|
||||||
local inv = player:get_inventory()
|
local inv = player:get_inventory()
|
||||||
|
|
Loading…
Reference in New Issue