Pickle Tweaks

Pickle Tweaks

31M Downloads

Storing a crossbow in RS 2 results in an error when trying to gather the tooltip

raoulvdberge opened this issue ยท 0 comments

commented

Describe the bug
When storing a crossbow in Refined Storage 2 with PickleTweaks (in TNP Limitless 8) it crashes when Refined Storage is trying to create the cached tooltip for a crossbow.

I had to add extra logging to Refined Storage to catch this error since it's happening in a network handler:

[21:15:12] [Render thread/WARN] [co.re.re.co.gr.vi.AbstractItemGridResourceFactory/]: Failed to get tooltip for item 1 minecraft:crossbow
java.lang.NullPointerException: Cannot invoke "net.minecraft.core.HolderLookup$Provider.lookupOrThrow(net.minecraft.resources.ResourceKey)" because "registries" is null
	at TRANSFORMER/[email protected]/com.blakebr0.pickletweaks.feature.FeatureBowInfo.onTooltip(FeatureBowInfo.java:30) ~[PickleTweaks-1.21.1-9.0.3.jar%231033!/:?] {re:classloading}
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350) ~[bus-8.0.2.jar%23162!/:?] {}

To Reproduce

  • Create an Refined Storage Grid, Creative Controller, 1k Storage Block
  • Open the Grid and store a crossbow
  • Crash!

Expected behavior
No crash.

Versions (please complete the following information):

  • Minecraft: 1.21.1
  • Forge: 21.1.83
  • Cucumber: 8.0.6
  • Pickle Tweaks: 9.0.3
  • Singleplayer or Multiplayer: single player