Ancient Spellcraft

Ancient Spellcraft

7M Downloads

Prismarine Ring causes Player on Server to Disconnect - java.lang.NoClassDefFoundError

TigerWalts opened this issue ยท 2 comments

commented

Version: 1.1.1

The ASArtefactHandler.onPlayerTickEvent() method tries to access the net/minecraft/client/Minecraft class when the player has a Prismarine Ring and is burning:

float i = player.getCooldownTracker().getCooldown(AncientSpellcraftItems.ring_prismarine, Minecraft.getMinecraft().getRenderPartialTicks());

This causes a non-fatal Exception that terminates the player's connection:

Server thread/ERROR Exception caught during firing event net.minecraftforge.fml.common.gameevent.TickEvent$PlayerTickEvent@751a4e8:
java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
at com.windanesz.ancientspellcraft.handler.ASArtefactHandler.onPlayerTickEvent(ASArtefactHandler.java:519) ~[ASArtefactHandler.class:?]

Current workaround: Disabling the ring in the ebwizardry.cfg should stop this code being executed as electroblob.wizardry.item.ItemArtefact.getActiveArtefacts() will not return a disabled item.

commented

Thanks for the detailed error report, will be fixed in the next patch soon!

commented

Fixed in 1.1.2