This commit is contained in:
Elias Fleckenstein 2021-01-05 17:35:06 +01:00
parent 7bdce54048
commit e7721b91a0
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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))