Update to comply with coding guidelines

This commit is contained in:
teknomunk 2024-02-13 09:46:12 +00:00
parent bdcd89e1bf
commit e02d1c0e27
2 changed files with 3 additions and 3 deletions

View File

@ -475,7 +475,7 @@ minetest.register_node("mcl_books:bookshelf", {
_mcl_hoppers_on_try_push = function(pos, hop_pos, hop_inv, hop_list)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
local filter = function(stack)
local function filter(stack)
return minetest.get_item_group(stack:get_name(), "book") == 1 or
stack:get_name() == "mcl_enchanting:book_enchanted"
end

View File

@ -382,7 +382,7 @@ local function hoppers_on_try_push(pos, hop_pos, hop_inv, hop_list)
if math.abs(pos.y - hop_pos.y) > math.abs(pos.x - hop_pos.x) and math.abs(pos.y - hop_pos.y) > math.abs(pos.z - hop_pos.z)
then
local filter = function(stack)
local function filter(stack)
return minetest.get_item_group(stack:get_name(), "brewitem") == 1 and
minetest.get_item_group(stack:get_name(), "bottle") == 0
end
@ -396,7 +396,7 @@ local function hoppers_on_try_push(pos, hop_pos, hop_inv, hop_list)
if stack then
return inv, "fuel", stack
else
local filter = function(stack)
local function filter(stack)
return minetest.get_item_group(stack:get_name(), "bottle") == 1
end
return inv, "stand", mcl_util.select_stack(hop_inv, hop_list, inv, "stand", filter, 1)