From d2862269009a1dfde21e7c691ce7ef812a654833 Mon Sep 17 00:00:00 2001 From: 1F616EMO Date: Wed, 3 Apr 2024 07:11:44 +0800 Subject: [PATCH] fix luacheck --- mods/bucket/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/bucket/init.lua b/mods/bucket/init.lua index 358b15d8..ff8aa2d6 100644 --- a/mods/bucket/init.lua +++ b/mods/bucket/init.lua @@ -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