fix luacheck
This commit is contained in:
parent
de9c6b5379
commit
d286226900
|
@ -157,9 +157,9 @@ minetest.register_craftitem("bucket:bucket_empty", {
|
||||||
if inv:room_for_item("main", {name=liquiddef.itemname}) then
|
if inv:room_for_item("main", {name=liquiddef.itemname}) then
|
||||||
inv:add_item("main", liquiddef.itemname)
|
inv:add_item("main", liquiddef.itemname)
|
||||||
else
|
else
|
||||||
local pos = user:get_pos()
|
local upos = user:get_pos()
|
||||||
pos.y = math.floor(pos.y + 0.5)
|
upos.y = math.floor(upos.y + 0.5)
|
||||||
minetest.add_item(pos, liquiddef.itemname)
|
minetest.add_item(upos, liquiddef.itemname)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- set to return empty buckets minus 1
|
-- set to return empty buckets minus 1
|
||||||
|
|
Loading…
Reference in New Issue