dantaeusb-mc / Zetter

Minecraft Painting Mod
https://zetter.gallery/wiki/zetter
Mozilla Public License 2.0
11 stars 5 forks source link

Fix failing UUID write for deprecated paintings? #80

Closed dantaeusb closed 1 year ago

dantaeusb commented 1 year ago

Happened in the World imported from 1.18.2

Description: Exception in server tick loop

java.lang.NullPointerException: Cannot invoke "java.util.UUID.getMostSignificantBits()" because "p_235882_" is null
    at net.minecraft.core.UUIDUtil.m_235881_(UUIDUtil.java:35) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading}
    at net.minecraft.nbt.NbtUtils.m_129226_(NbtUtils.java:186) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading}
    at net.minecraft.nbt.CompoundTag.m_128362_(CompoundTag.java:178) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading,re:mixin}
    at me.dantaeusb.zetter.storage.PaintingData.m_7176_(PaintingData.java:105) ~[zetter-0.19.0-1.19.2-rc.jar%23148!/:0.19.0-1.19.2-rc] {re:classloading}
    at net.minecraft.world.level.saveddata.SavedData.m_77757_(SavedData.java:36) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading}
    at net.minecraft.world.level.storage.DimensionDataStorage.m_164865_(DimensionDataStorage.java:161) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading}
    at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?] {re:mixin}
    at net.minecraft.world.level.storage.DimensionDataStorage.m_78151_(DimensionDataStorage.java:159) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading}
    at net.minecraft.server.level.ServerLevel.m_8806_(ServerLevel.java:723) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
    at net.minecraft.server.level.ServerLevel.m_8643_(ServerLevel.java:702) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_129885_(MinecraftServer.java:496) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.client.server.IntegratedServer.m_129885_(IntegratedServer.java:422) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading,xf:OptiFine:default}
    at net.minecraft.server.MinecraftServer.m_195514_(MinecraftServer.java:521) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:106) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading,xf:OptiFine:default}
    at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:654) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:244) ~[client-1.19.2-20220805.130853-srg.jar%23150!/:?] {re:classloading,pl:accesstransformer:B}
    at java.lang.Thread.run(Thread.java:833) [?:?] {}