Bottle of Honey and Experience Bottle acceptance
This commit is contained in:
parent
c7e4e15768
commit
101b3bffd3
2
init.lua
2
init.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue