Fix #959
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.
|
-- by hand. Creative Mode is intentionally ignored in this case.
|
||||||
|
|
||||||
local doTileDrops = minetest.settings:get_bool("mcl_doTileDrops", true)
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -121,6 +121,8 @@ local fish = function(itemstack, player, pointed_thing)
|
||||||
local inv = player:get_inventory()
|
local inv = player:get_inventory()
|
||||||
if inv:room_for_item("main", item) then
|
if inv:room_for_item("main", item) then
|
||||||
inv:add_item("main", item)
|
inv:add_item("main", item)
|
||||||
|
else
|
||||||
|
minetest.add_item(pos, item)
|
||||||
end
|
end
|
||||||
if mcl_experience.throw_experience then
|
if mcl_experience.throw_experience then
|
||||||
mcl_experience.throw_experience(pos, math.random(1,6))
|
mcl_experience.throw_experience(pos, math.random(1,6))
|
||||||
|
|
Loading…
Reference in New Issue