Create Enchantment Industry

Create Enchantment Industry

17M Downloads

Crash Rendering entity in world

Flexz9 opened this issue ยท 3 comments

commented

Minecraft Version

1.20.1

Describe the Bug

Description: Rendering entity in world

Reproduction Steps

  1. Multishot enchant int blaze burner
  2. Try to enchant (crash)
  3. Login
  4. Break block (this crash on each login)

Expected Result

Don't crash

Screenshots and Videos

No response

Crash Report or Log

https://gist.github.com/Flexz9/2be67cf82291acd22b60e8766ac66fd4

Other Mods

No response

Mod Version

create_enchantment_industry-1.20.1-for-create-0.5.1.f-1.2.8

Forge Version

47.2.20

commented
        try {
            var result = enchantments.get(index);
            return EnchantmentEntry.of(result.getKey(), result.getValue());
        } catch (IndexOutOfBoundsException e) {
            return null;
        }

This solved it for me. Can be closed on my part as I just patched a version with this. May be useful to add on your end.

commented

That's strange. The only possible situation is certain enchantment of the enchantment book has been removed from the game.

commented

Fixed