forked from LizzyFleckenstein03/Memeclone
Fix #959
This commit is contained in:
parent
7bdce54048
commit
e7721b91a0
|
@ -274,7 +274,7 @@ function minetest.handle_node_drops(pos, drops, digger)
|
|||
-- by hand. Creative Mode is intentionally ignored in this case.
|
||||
|
||||
local doTileDrops = minetest.settings:get_bool("mcl_doTileDrops", true)
|
||||
if (digger ~= nil or (digger:is_player() and minetest.is_creative_enabled(digger:get_player_name())) or doTileDrops == false then
|
||||
if (digger ~= nil or (digger:is_player() and minetest.is_creative_enabled(digger:get_player_name()))) or doTileDrops == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
@ -121,6 +121,8 @@ local fish = function(itemstack, player, pointed_thing)
|
|||
local inv = player:get_inventory()
|
||||
if inv:room_for_item("main", item) then
|
||||
inv:add_item("main", item)
|
||||
else
|
||||
minetest.add_item(pos, item)
|
||||
end
|
||||
if mcl_experience.throw_experience then
|
||||
mcl_experience.throw_experience(pos, math.random(1,6))
|
||||
|
|
Loading…
Reference in New Issue