Hephaestus Fabric

Hephaestus Fabric

1M Downloads

Trying to craft a tool part produces a NullPointerException

NyakoFox opened this issue ยท 0 comments

commented

Minecraft Version

1.18.2

Fabric/Quilt Version

0.14.9

Fabric/Quilt API Version

0.58.0+1.18.2

Tinkers' Construct Version

1.18.2-3.5.1.DEV.5308c28

Describe your issue

java.lang.NullPointerException: Cannot invoke "net.minecraft.class_1792.method_7854()" because the return value of "net.minecraft.class_1792.method_7858()" is null

method_7854 is getDefaultInstance, and method_7858 is getCraftingRemainingItem. The source of this bug is in ca73fca, and can be found here:

ItemStack container = stack.getItem().getCraftingRemainingItem().getDefaultInstance();

This should be behind a check if there's a crafting remainder, before trying to get the default instance of it, otherwise it produces the NPE.

Crash Report

https://mclo.gs/4Vo20Fx

Other mods

Using Cabricality but that shouldn't affect the issue

Tried reproducing with just Tinkers?

No

Performance Enchancers

Sodium

Searched for known issues?

Searched closed issues