webbukkit / DynmapBlockScan

Tool to scan post-1.8 MC blocks and JSON model data to automatically generate Dynmap models
61 stars 30 forks source link

NullPointerException in deserialization #64

Closed Mordna closed 2 years ago

Mordna commented 2 years ago

Version: 3.4-beta-1-forge-1.12.2

Server crashes when DynmapBlockScan runs (modpack: Divine Journey 2).

Stack trace of crash report:

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from DynmapBlockScan (dynmapblockscan)
Caused by: java.lang.NullPointerException
    at org.dynmapblockscan.core.blockstate.Variant$Deserializer.deserialize(Variant.java:131)
    at org.dynmapblockscan.core.blockstate.Variant$Deserializer.deserialize(Variant.java:112)
    ....

Cause seems to be a typing error in: https://github.com/webbukkit/DynmapBlockScan/blob/583ebd9b959c841f44d0a9bf04b02d03f336489b/core/src/main/java/org/dynmapblockscan/core/blockstate/Variant.java#L131

-> 'y' should be 'z'

Amgelo563 commented 2 years ago

Adding more info into this, you can reproduce this with the BetterNether mod, from every version after 0.1.6 (0.1.5 works, .6 doesn't).

Crash report: https://mclo.gs/plDkkIH Logs: https://mclo.gs/ue8SWCl