Bottle of Honey and Experience Bottle acceptance

This commit is contained in:
anarquimico 2022-11-28 22:51:06 -03:00
parent c7e4e15768
commit 101b3bffd3
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ local function protection_check_put_take(pos, listname, index, stack, player)
if minetest.is_protected(pos, name) then
minetest.record_protection_violation(pos, name)
return 0
elseif minetest.get_item_group(stack:get_name(), "brewitem") ~= 0 then
elseif minetest.get_item_group(stack:get_name(), "brewitem") ~= 0 or stack:get_name() == "mcl_honey:honey_bottle" or stack:get_name() == "mcl_experience:bottle" then
return stack:get_count()
else
return 0