Fixed a crash

This commit is contained in:
the-real-herowl 2024-12-29 01:54:58 +01:00 committed by the-real-herowl
parent 8a252342a5
commit 14ec7fe98f

@ -323,7 +323,7 @@ function minetest.handle_node_drops(pos, drops, digger)
if hammer and hammer > 0 and nodedef._vl_crushing_drop then
drops = nodedef._vl_crushing_drop
-- Fortune drops
else if tool and nodedef._mcl_fortune_drop and enchantments.fortune then
elseif tool and nodedef._mcl_fortune_drop and enchantments.fortune then
local fortune_level = enchantments.fortune
local fortune_drop = nodedef._mcl_fortune_drop
local simple_drop = nodedef._mcl_fortune_drop.drop_without_fortune