fix syntax of minetest.after():cancel()

This commit is contained in:
tour 2024-08-10 00:47:26 +02:00
parent c4665b2eb6
commit 67b31d7d6d
2 changed files with 9 additions and 9 deletions

View File

@ -92,7 +92,7 @@ local function remove_announcement(announcement)
hud:hide(player)
end
end
announcement.timeout_job.cancel()
announcement.timeout_job:cancel()
end

View File

@ -223,7 +223,7 @@ function WaypointHUD:hide(player)
self.compass_hud:hide(player)
player:hud_remove(self.background)
if self.auto_update_job then
self.auto_update_job.cancel()
self.auto_update_job:cancel()
self.auto_update_job = nil
end
end