JSBridge: Clash between `java.util.Timer` and `arc.util.Timer`
SMOLKEYS opened this issue · 0 comments
SMOLKEYS commented
Mindustry Version: 140.4
Project Unity Build: https://github.com/AvantTeam/ProjectUnityPublic/actions/runs/3704705557
Issue: JSBridge causes arc.util.Timer
to clash with java.util.Timer
, throwing an error and referencing the wrong class.
First Timer
reference call: Throws an ambiguous import error, then makes all future Timer
reference calls refer to java.util.Timer
instead. This breaks every single console-runnable script that uses arc.util.Timer
.
First Timer
reference call with a mod enabled that references arc.util.Timer
: Returns the intended class: arc.util.Timer
.