Skip to content

#4288: Fix incompatibility with Compact Machines#4290

Open
AlexandreArcil wants to merge 1 commit intoSpongePowered:api-12from
AlexandreArcil:fix-compactmachines-incompatibility
Open

#4288: Fix incompatibility with Compact Machines#4290
AlexandreArcil wants to merge 1 commit intoSpongePowered:api-12from
AlexandreArcil:fix-compactmachines-incompatibility

Conversation

@AlexandreArcil
Copy link
Copy Markdown
Contributor

Fix #4288: Incompatibility in commands between CompactMachines and SpongeNeo

Compact Machines is reloading the packs with an immutable list but Sponge Common tried to add other packs to the list, which threw an UnsupportedOperationException.
https://github.com/CompactMods/CompactMachines/blob/21.1/main/neoforge-main/src/main/java/dev/compactmods/machines/command/EnableBasicTemplatesSubcommand.java#L36

The fix consists of adding the Compact Machines packs to the Sponge packs list since it's an ArrayList, and then replacing the initial list with the Sponge packs list.

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.

Incompatibility in commands between CompactMachines and SpongeNeo

1 participant