Adding multiple timers to a single target causes problems #85
Labels
Priority: Low
This can be looked into after a week
Status: Pending
Looking into it
Type: Bug
Something isn't working
Describe the bug
The
Timer.add()
allows the user to add multiple timers to a single entity, which causes buggy and unintended behavior.In
__load__.mcfunction
:In
__private__/timer_add/main.mcfunction
:To Reproduce
Timer.add()
to add a timer to the same target twiceExpected behavior
Should probably throw an exception, telling the user the timer already existed prior and should use
Timer.set()
instead.Desktop
Additional context
Timer.add()
also adds an additional scoreboard to the datapack, even when the scoreboard has already been created. This only occurs in the first instance of using the scoreboard within aTimer.add()
call, so it seemsTimer
properly caches previously scoreboard its created but doesn't recognize scoreboards created by other means.The text was updated successfully, but these errors were encountered: