From d392f04c11b5884db1e3b823d38f7d83d71f8ab3 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 31 May 2021 21:35:09 +0200 Subject: [PATCH] Small fix --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index de87766..9766d6c 100644 --- a/init.lua +++ b/init.lua @@ -75,7 +75,8 @@ local min, max, floor, ceil, random = local pairs, ipairs, next, type, setmetatable, tonum, unpack, select = pairs, ipairs, next, type, setmetatable, tonumber, unpack, select -local vec_add, vec_mul, vec_eq, vec_round = vector.add, vector.multiply, vector.equals, vector.round +local vec_new, vec_add, vec_mul, vec_eq, vec_round = + vector.new, vector.add, vector.multiply, vector.equals, vector.round local MAX_FAVS = 6 local ITEM_BTN_SIZE = 1.1 @@ -2605,7 +2606,7 @@ i3.new_tab { remove(data.waypoints, id) elseif action == "teleport" then - local pos = waypoint.pos + local pos = vec_new(waypoint.pos) pos.y = pos.y + 0.5 player:set_pos(pos)