Queerbric / Inspecio

A Minecraft mod which adds more tooltip components to items.
https://modrinth.com/mod/inspecio
GNU Lesser General Public License v3.0
101 stars 25 forks source link

Incompatibility with Fabrication #67

Closed sisby-folk closed 2 years ago

sisby-folk commented 2 years ago

Crashes on startup with

java.lang.NullPointerException: Cannot invoke "io.github.queerbric.inspecio.Inspecio.getConfig()" because the return value of "io.github.queerbric.inspecio.Inspecio.get()" is null
    at io.github.queerbric.inspecio.Inspecio.appendBlockItemTooltip(Inspecio.java:187)
    at net.minecraft.class_1747.handler$zpk000$onAppendTooltipEnd(class_1747.java:610)
    at net.minecraft.class_1747.method_7851(class_1747.java:207)
    at net.minecraft.class_1799.method_7950(class_1799.java:685)
    at net.minecraft.class_310.method_1485(class_310.java:774)
    at net.minecraft.class_1126.method_4795(class_1126.java:36)
    at net.minecraft.class_1121.method_4798(class_1121.java:48)
    at net.minecraft.class_310.method_1535(class_310.java:787)
    at java.base/java.lang.Iterable.forEach(Iterable.java:75)
    at net.minecraft.class_310.method_1546(class_310.java:786)
    at net.minecraft.class_310.<init>(class_310.java:576)
    at net.minecraft.client.main.Main.main(Main.java:197)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:416)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at io.github.queerbric.inspecio.Inspecio.appendBlockItemTooltip(Inspecio.java:187)
    at net.minecraft.class_1747.handler$zpk000$onAppendTooltipEnd(class_1747.java:610)
    at net.minecraft.class_1747.method_7851(class_1747.java:207)
    at net.minecraft.class_1799.method_7950(class_1799.java:685)
    at net.minecraft.class_310.method_1485(class_310.java:774)
    at net.minecraft.class_1126.method_4795(class_1126.java:36)
    at net.minecraft.class_1121.method_4798(class_1121.java:48)
    at net.minecraft.class_310.method_1535(class_310.java:787)
    at java.base/java.lang.Iterable.forEach(Iterable.java:75)
    at net.minecraft.class_310.method_1546(class_310.java:786)
    at net.minecraft.class_310.<init>(class_310.java:576)

With just Fabrication-1.18.2-exp2, Inspecio 1.3.0, FAPI

here's the issue on Fabrication: https://github.com/unascribed/Fabrication/issues/431