From eb06f48875c423520bdb7b7881db09a9ea3bb87a Mon Sep 17 00:00:00 2001 From: teknomunk Date: Fri, 3 Jan 2025 11:52:47 +0100 Subject: [PATCH] Fix fishing pole casting crash (#4800) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4800 Reviewed-by: Mikita Wiśniewski Co-authored-by: teknomunk Co-committed-by: teknomunk --- mods/ITEMS/mcl_fishing/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_fishing/init.lua b/mods/ITEMS/mcl_fishing/init.lua index fad3e71da..7c95d3c9c 100644 --- a/mods/ITEMS/mcl_fishing/init.lua +++ b/mods/ITEMS/mcl_fishing/init.lua @@ -188,7 +188,7 @@ local fish = function(itemstack, player, pointed_thing) if noent == true then local playerpos = player:get_pos() local dir = player:get_look_dir() - mcl_throwing.throw("mcl_fishing:flying_bobber", {x=playerpos.x, y=playerpos.y+1.5, z=playerpos.z}, dir, 15, player:get_player_name()) + mcl_throwing.throw("mcl_fishing:flying_bobber", vector.offset(playerpos, 0, 1.5, 0), dir, 15, player) end end