Default/item drop: Fix that item drop is enabled even if disabled in settings (fixes #31)

master
LNJ 2016-09-03 11:11:08 +02:00
parent a3f09d9417
commit 2cc7dc470e
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ core.register_globalstep(function(dtime)
end
end)
local item_drop = core.setting_getbool("enable_item_drop") or true
if item_drop then
local item_drop = core.setting_getbool("enable_item_drop")
if item_drop == true then
function core.handle_node_drops(pos, drops, digger)
local inv
if core.setting_getbool("creative_mode") and digger and digger:is_player() then