Merge pull request 'Fix undeclared global variable in mcl_buckets' (#3314) from buckets_warning into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3314
Reviewed-by: Michieal <michieal@noreply.git.minetest.land>
This commit is contained in:
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 2023-01-16 19:02:34 +00:00
commit 90c74f4a6a

View file

@ -139,7 +139,7 @@ local function bucket_get_pointed_thing(user)
local start = user:get_pos() local start = user:get_pos()
start.y = start.y + user:get_properties().eye_height start.y = start.y + user:get_properties().eye_height
local look_dir = user:get_look_dir() local look_dir = user:get_look_dir()
_end = vector.add(start, vector.multiply(look_dir, 5)) local _end = vector.add(start, vector.multiply(look_dir, 5))
local ray = raycast(start, _end, false, true) local ray = raycast(start, _end, false, true)
for pointed_thing in ray do for pointed_thing in ray do