Mojira Archive
MC-99900

Enchantments boostrap class has the wrong error message when called before bootstrap

This is a minor thing but it may cause issues within other crashes. When a registry is accessed before the bootstrap has finished, it throws an exception, but for the Enchantments registry, the exception has the wrong name: it refers to itself as MobEffects. The MobEffects registry (which contains potion effects) properly refers to itself as MobEffects.

This doesn't cause any issues within the game itself, but may cause confusion if this error state ever does occur.

I can be sure that it is actually the Enchantments registry since A) it's a list of enchantments and B) its other error message is "Invalid Enchantment requested".

The fix is trivial: Just change

throw new RuntimeException("Accessed MobEffects before Bootstrap!");

to

throw new RuntimeException("Accessed Enchantments before Bootstrap!");

on line 45 of the enchantment registry (in MCP, net.minecraft.init.Enchantments; in 1.9 and 1.9.1-pre3 obfuscation in agq).

Fixed

[Mod] Pokechu22

[Mojang] Agnes Larsson

2016-03-22, 01:08 AM

2016-10-11, 03:00 PM

2016-10-11, 03:00 PM

1

3

Unconfirmed

Minecraft 1.9 - Minecraft 16w33aMinecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.10.2, Minecraft 16w32b, Minecraft 16w33a

Minecraft 16w41a