fix syntax of minetest.after():cancel()
This commit is contained in:
parent
c4665b2eb6
commit
67b31d7d6d
2
init.lua
2
init.lua
@ -92,7 +92,7 @@ local function remove_announcement(announcement)
|
||||
hud:hide(player)
|
||||
end
|
||||
end
|
||||
announcement.timeout_job.cancel()
|
||||
announcement.timeout_job:cancel()
|
||||
end
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user