AW Engineering Table Crash When Using 1/999 Durability Mystical Agriculture Crystal
ZeroHearts opened this issue ยท 0 comments
Moved over from the MC Eternal modpack GitHub as this may happen with other crafting items as well:
When crafting in the Ancient Warfare Engineering bench with the standard Infusion Crystal, it causes a few minor issues and one major one.
- If you get the crystal down to 1 durability then try to shift-click craft a stack of essence, it will crash Minecraft.
- It takes far less durability from the crystal when crafting in the bench than when crafting normally.
- A very weird one I only tested once is when the Engineering Bench had 2 unused crystals, when shift-click crafting, it will completely eat one of them without any way to get it back.
MC Eternal V. 1.4.1
Ancient Warfare 1.12.2 V 2.7.0.1032
Steps to reproduce the behavior:
- Get the standard infusion crystal from MA.
- Get its durability down to 1/999.
- Put it and at least 4 stacks of any essence in the table (was tested with tier 1 essence).
- Shift click to craft a full stack of the next tier of essence.
- Crash.
I expected the game to just finish the durability of the crystal and then the crystal gets deleted after its use like normal.
I can add the full crash report if necessary, however here is the top part of the report:
Report
Description: Updating screen events
java.lang.NullPointerException
at com.bewitchment.common.handler.PoppetHandler.toolProtection(PoppetHandler.java:170)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_3181_PoppetHandler_toolProtection_PlayerDestroyItemEvent.invoke(.dynamic)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
at net.minecraftforge.event.ForgeEventFactory.onPlayerDestroyItem(ForgeEventFactory.java:204)
at net.minecraftforge.common.ForgeHooks.getContainerItem(ForgeHooks.java:1029)
at net.minecraftforge.common.ForgeHooks.defaultRecipeGetRemainingItems(ForgeHooks.java:1007)
at net.minecraft.item.crafting.IRecipe.getRemainingItems(IRecipe.java:20)
at net.shadowmage.ancientwarfare.core.crafting.wrappers.RegularCraftingWrapper.getRemainingItems(RegularCraftingWrapper.java:49)
at net.shadowmage.ancientwarfare.core.crafting.AWCraftingManager.getReusableStacks(AWCraftingManager.java:559)
at net.shadowmage.ancientwarfare.core.container.ContainerEngineeringStation$1.handleOnTake(ContainerEngineeringStation.java:43)
at net.shadowmage.ancientwarfare.core.container.ContainerCraftingRecipeMemory$1.onTake(ContainerCraftingRecipeMemory.java:77)
at net.shadowmage.ancientwarfare.core.container.ContainerEngineeringStation.transferStackInSlot(ContainerEngineeringStation.java:154)
at net.minecraft.inventory.Container.slotClick(Container.java:246)
at net.shadowmage.ancientwarfare.core.container.ContainerEngineeringStation.slotClick(ContainerEngineeringStation.java:94)
at net.minecraft.client.multiplayer.PlayerControllerMP.windowClick(PlayerControllerMP.java:566)
at net.minecraft.client.gui.inventory.GuiContainer.handleMouseClick(GuiContainer.java:638)
at net.minecraft.client.gui.inventory.GuiContainer.mouseClicked(GuiContainer.java:392)
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:533)
at net.shadowmage.ancientwarfare.core.gui.GuiContainerBase.handleMouseInput(GuiContainerBase.java:105)
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:501)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1759)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1098)
at net.minecraft.client.Minecraft.run(Minecraft.java:4442)
at net.minecraft.client.main.Main.main(SourceFile:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)