jaquadro / StorageDrawers

A mod adding compartmental storage for Minecraft Forge
MIT License
203 stars 160 forks source link

Fix waila (jade) integration #1107

Open dima-dencep opened 1 year ago

dima-dencep commented 1 year ago

When using jade, you may get an error when loading minecraft:

Error loading plugin at com.jaquadro.minecraft.storagedrawers.integration.Waila
java.lang.NullPointerException
    at java.base/java.util.Objects.requireNonNull(Objects.java:209)
    at TRANSFORMER/jade@11.6.3/snownee.jade.impl.HierarchyLookup.register(HierarchyLookup.java:39)
    at TRANSFORMER/jade@11.6.3/snownee.jade.impl.WailaClientRegistration.registerBlockComponent(WailaClientRegistration.java:105)
    at TRANSFORMER/storagedrawers@12.0.2/com.jaquadro.minecraft.storagedrawers.integration.Waila.registerClient(Waila.java:28)
    at TRANSFORMER/jade@11.6.3/snownee.jade.util.CommonProxy.loadComplete(CommonProxy.java:143)
    at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:260)
    at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:252)
    at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:315)
    at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:296)
    at LAYER PLUGIN/javafmllanguage@1.20.1-47.1.3/net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:107)
    at LAYER PLUGIN/fmlcore@1.20.1-47.1.3/net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$10(ModContainer.java:124)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)

This pr fixes this

Sultia commented 12 months ago

bump

Mickeon commented 6 months ago

Massive bump. I've noticed this bug, as well, and I was about to open a bug report in Jade's repository.