From ecda62fc2f78d6a5b847d9f7961ddab2d4040e75 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Tue, 20 Apr 2021 03:27:37 +0200 Subject: [PATCH] Fix waypoint again (shit) --- README.md | 2 +- init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index afff3a6..b1e4e31 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,6 @@ Report any bug on the [**Bug Tracker**](https://github.com/minetest-mods/i3/issu Love this mod? Donations are appreciated: https://www.paypal.me/jpg84240 -Demo video: https://www.youtube.com/watch?v=25nCAaqeacU +Demo video (outdated): https://www.youtube.com/watch?v=25nCAaqeacU ![Preview](https://user-images.githubusercontent.com/7883281/115294125-7827cb80-a158-11eb-89f1-1f533621a9fe.png) diff --git a/init.lua b/init.lua index 8ce12ee..245a91b 100644 --- a/init.lua +++ b/init.lua @@ -2579,7 +2579,7 @@ i3.new_tab { elseif action == "refresh" then local color = random(0xffffff) waypoint.color = color - player:hud_change(id, "number", color) + player:hud_change(waypoint.id, "number", color) elseif action == "hide" then if waypoint.hide then