Skip to content

Conversation

@RedEpicness
Copy link
Contributor

No description provided.

if (is == null) throw new IllegalStateException("No bundled container jar found!");
Files.copy(is, destination);
}
Path metadataDestination = Paths.get("essential", "integration-mod-metadata.json");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract this into a separate method, which is called just before the return.

JsonObject metadata = new JsonObject();
JsonArray partnerArray = new JsonArray();
for (PartnerModData.PartnerMod partnerMod : partnerMods) {
partnerArray.add(partnerMod.getId());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compile error on 1.8.9 here due to GSON API differences.

Comment on lines 84 to 85
EssentialPartner.LOGGER.warn("Failed to store telemetry file to {}", metadataDestination.toRealPath());
EssentialPartner.LOGGER.warn("Error:", e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
EssentialPartner.LOGGER.warn("Failed to store telemetry file to {}", metadataDestination.toRealPath());
EssentialPartner.LOGGER.warn("Error:", e);
EssentialPartner.LOGGER.warn("Failed to store telemetry file to {}", metadataDestination.toRealPath(), e);

@RedEpicness RedEpicness force-pushed the feature/add-partner-list-metadata branch from c54a36d to 4cd1aaa Compare June 28, 2025 03:17
@RedEpicness RedEpicness force-pushed the feature/add-partner-list-metadata branch from 4cd1aaa to 4aa818c Compare June 30, 2025 11:18
@DJtheRedstoner DJtheRedstoner merged commit 6eae67b into main Jul 1, 2025
2 checks passed
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.

3 participants