ProjectUnityPublic icon indicating copy to clipboard operation
ProjectUnityPublic copied to clipboard

JSBridge: Clash between `java.util.Timer` and `arc.util.Timer`

Open SMOLKEYS opened this issue 3 years ago • 0 comments

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.

SMOLKEYS avatar Jan 05 '23 13:01 SMOLKEYS