Skip to content

Fixed an issue preventing the Mod from starting on a Dedicated Server#40

Open
OutCraft-Mods wants to merge 1 commit intolightning2401:mainfrom
OutCraft-Mods:main
Open

Fixed an issue preventing the Mod from starting on a Dedicated Server#40
OutCraft-Mods wants to merge 1 commit intolightning2401:mainfrom
OutCraft-Mods:main

Conversation

@OutCraft-Mods
Copy link

@OutCraft-Mods OutCraft-Mods commented Aug 7, 2024

Trying to run this mod on a Dedicated Server (not Open-To-Lan, but "real" server jar) results in the crash

java.lang.NoClassDefFoundError: com/ibm/icu/impl/Pair

The Forge Dedicated Server version of Minecraft does not contain the icu4j library used on a client, but part of the mod's serverside code depends on icu4j for the Pair class.

This PR replaces all occurrences of com.ibm.icu.impl.Pair with the Pair class of Create (com.simibubi.create.foundation.utility.Pair) which exists on a Dedicated Server and is nearly identical to the icu4j one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant