Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel enchantment removal to... #520

Closed
wants to merge 1 commit into from

Conversation

PoneyClairDeLune
Copy link
Contributor

... fix the fishing enchantment problems.

... fix the fishing enchantment problems.
@Sollace
Copy link
Owner

Sollace commented Dec 6, 2024

What is this trying to fix?

@PoneyClairDeLune
Copy link
Contributor Author

Before (since 1.3.9+1.20.1, captured on 26 Nov 2024):

image

The enchanted books obtained from fishing are all either blank or with Clingy III only. Affects both vanilla fishing and modded fishing (e.g. Nether fishing in Nether Depth Upgrades).

After fixing:

image

The bug is no longer there.

@PoneyClairDeLune
Copy link
Contributor Author

Only patched out the place where the removal is done, however for a full fix for 1.20.1, the following files will all need some attention. Some of the files simply do not exist in the latest codebase.

  • src/main/java/com/minelittlepony/unicopia/item/enchantment/CustomEnchantableItem.java
  • src/main/java/com/minelittlepony/unicopia/mixin/MixinEnchantment.java
  • src/main/java/com/minelittlepony/unicopia/mixin/MixinEnchantmentHelper.java

You can debug the enchanted books obtained from fishing easily with /give @s barrel{BlockEntityTag:{LootTable:"minecraft:gameplay/fishing/treasure"}} instead of fishing constantly.

@PoneyClairDeLune
Copy link
Contributor Author

Closing this PR for now as it's only intended as a temporary solution.

@Sollace
Copy link
Owner

Sollace commented Dec 10, 2024

/loot give @p fish minecraft:gameplay/fishing/treasure ~ ~ ~

image

Sollace added a commit that referenced this pull request Dec 10, 2024
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.

2 participants