fix luacheck

This commit is contained in:
1F616EMO 2024-04-03 07:11:44 +08:00
parent de9c6b5379
commit d286226900
No known key found for this signature in database
GPG Key ID: EF52EFA8E05859B2
1 changed files with 3 additions and 3 deletions

View File

@ -157,9 +157,9 @@ minetest.register_craftitem("bucket:bucket_empty", {
if inv:room_for_item("main", {name=liquiddef.itemname}) then
inv:add_item("main", liquiddef.itemname)
else
local pos = user:get_pos()
pos.y = math.floor(pos.y + 0.5)
minetest.add_item(pos, liquiddef.itemname)
local upos = user:get_pos()
upos.y = math.floor(upos.y + 0.5)
minetest.add_item(upos, liquiddef.itemname)
end
-- set to return empty buckets minus 1