AvantTeam / ProjectUnityPublic

A public, stripped down workspace of the Project Unity mod, a mega-collaboration Mindustry mod. Not intended to be played yet; this is purely for code publicity and healthy competition reasons.
GNU General Public License v3.0
174 stars 29 forks source link

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

Open SMOLKEYS opened 1 year ago

SMOLKEYS commented 1 year ago

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.