forked from minetest-mods/item_drop
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
900614a74c
2
init.lua
2
init.lua
@ -378,7 +378,7 @@ and not minetest.settings:get_bool("creative_mode") then
|
||||
|
||||
local old_handle_node_drops = minetest.handle_node_drops
|
||||
function minetest.handle_node_drops(pos, drops, player)
|
||||
if player.is_fake_player then
|
||||
if not player or player.is_fake_player then
|
||||
-- Node Breaker or similar machines should receive items in the
|
||||
-- inventory
|
||||
return old_handle_node_drops(pos, drops, player)
|
||||
|
Loading…
Reference in New Issue
Block a user