Skip to content

Update Display Compatibility for EcoEnchants and Reforges#2346

Open
0x484 wants to merge 1 commit into
QuickShop-Community:hikarifrom
0x484:fix/eco7-compat-updates
Open

Update Display Compatibility for EcoEnchants and Reforges#2346
0x484 wants to merge 1 commit into
QuickShop-Community:hikarifrom
0x484:fix/eco7-compat-updates

Conversation

@0x484
Copy link
Copy Markdown

@0x484 0x484 commented May 20, 2026

Summary

What does this PR do?

  • Update EcoEnchants and Reforges compat modules
  • Replace instantiated Display with Display.INSTANCE (now a Kotlin object)
  • Add libreforge-loader 5.4.2 dependency (now required explicitly)
  • Add Kotlin relocation to maven-shade-plugin

Type of Change

  • Feature
  • Bug fix
  • Refactor / Cleanup
  • Documentation
  • Breaking change

Basic Checks

  • I have tested these changes locally
  • I confirm no undocumented AI-generated code was used in this submission

Notes (optional)

Add anything important for reviewers:

  • Why this change was needed
  • Edge cases
  • Implementation details

Config Changes (if applicable)

Only fill this out if you touched config:

  • Added/changed:
  • Default values:
  • Any risks or notes:

Breaking Changes (if applicable)

  • What changed:
  • Had to Change previewComponent = plugin.platform().setItemStackHoverEvent for it to work.
    From (previewComponent, shop.getItem()); to (previewComponent, previewItemStack);
    Don't know if this causes issues or requires other changes
  • Required action:

Related (optional)

  • Fixes Issue #
  • Related to Issue/PR #

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 20, 2026

CLA assistant check
All committers have signed the CLA.

<configuration>
<relocations>
<relocation>
<pattern>kotlin</pattern>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this required? Are you saying that ecoenchants isn't shading their kotlin dependency?

<groupId>com.willfp</groupId>
<artifactId>Reforges</artifactId>
<version>${compat.reforges}</version>
<version>7.5.0</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did the version properties get removed instead of updating them in the main pom?

previewItemStack = previewComponentPrePopulateEvent.getItemStack();
Component previewComponent = plugin.text().of(p, "menu.preview", Component.text(previewItemStack.getAmount())).forLocale().clickEvent(ClickEvent.clickEvent(ClickEvent.Action.RUN_COMMAND, MsgUtil.fillArgs("/{0} {1} {2}", plugin.getMainCommand(), plugin.getCommandPrefix("silentpreview"), shop.getRuntimeRandomUniqueId().toString())));
previewComponent = plugin.platform().setItemStackHoverEvent(previewComponent, shop.getItem());
previewComponent = plugin.platform().setItemStackHoverEvent(previewComponent, previewItemStack);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Has this replacement been tested? I noticed your note stating you weren't sure if it's going to mess anything up or not...

<groupId>com.willfp</groupId>
<artifactId>eco</artifactId>
<version>${compat.eco}</version>
<version>7.6.1</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did the version properties get removed instead of updating them in the main pom?

<groupId>com.willfp</groupId>
<artifactId>eco</artifactId>
<version>${compat.eco}</version>
<version>7.6.1</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did the version properties get removed instead of updating them in the main pom?

<dependency>
<groupId>com.willfp</groupId>
<artifactId>libreforge-loader</artifactId>
<version>5.4.2</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should have a property added to the main project pom.

<groupId>com.willfp</groupId>
<artifactId>EcoEnchants</artifactId>
<version>${compat.ecoenchants}</version>
<version>13.6.0</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did the version properties get removed instead of updating them in the main pom?

<dependency>
<groupId>com.willfp</groupId>
<artifactId>libreforge-loader</artifactId>
<version>5.4.2</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should have a property added to the main project pom.

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