Skip to content

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

@SMOLKEYS

Description

@SMOLKEYS

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions