Skip to content

Commit

Permalink
fix luacheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Emojigit committed Apr 2, 2024
1 parent de9c6b5 commit d286226
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mods/bucket/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d286226

Please sign in to comment.