master #5

Merged
epCode merged 255 commits from VoxeLibre/VoxeLibre:master into master 2021-02-02 23:20:01 +01:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit e7721b91a0 - Show all commits

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