1
0
Fork 0

Custom node drops now ignore Creative Mode

objects
Wuzzy 2018-03-05 13:35:14 +01:00
parent 3ae8119498
commit 1fa141d972
1 changed files with 5 additions and 1 deletions

View File

@ -207,8 +207,12 @@ local check_can_drop = function(node_name, tool_capabilities)
end
function minetest.handle_node_drops(pos, drops, digger)
-- NOTE: This function override allows digger to be nil.
-- 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.
local doTileDrops = minetest.settings:get_bool("mcl_doTileDrops") or true
if 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
end