LunaPixelStudios / Medieval-MC

https://lunapixel.studio/discord
https://lunapixel.studio/discord
15 stars 9 forks source link

this.moonlight$customDecorations is null client disconnect when openign a blank vanilla MC map #692

Closed Sonamiya closed 11 months ago

Sonamiya commented 11 months ago

Describe the Bug

Whenever i open a blank vanilla MC map, the game disconnects with the full error:

[22:57:29] [Render thread/WARN] [minecraft/ModelBakery]: Unable to load model: 'everycomp:tf/blue_skies/hollow_maple_log_vertical#inventory' referenced from: everycomp:tf/blue_skies/hollow_maple_log_vertical#inventory: java.io.FileNotFoundException: everycomp:models/item/tf/blue_skies/hollow_maple_log_vertical.json
[22:57:31] [Netty Client IO #9/WARN] [co.co.Connectivity/]: Packet not registered: ClientboundDisconnectPacket
[22:57:31] [Netty Client IO #9/WARN] [co.co.Connectivity/]: Packet:ClientboundDisconnectPacket 
[22:57:31] [Netty Client IO #9/WARN] [co.co.Connectivity/]: Packet data:
{
  "f_132075_": {
    "f_237194_": {
      "f_237497_": "disconnect.genericReason",
      "f_237498_": [
        "Internal Exception: io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Cannot read the array length because \"this.moonlight$customDecorations\" is null"
      ],
      "f_237500_": []
    },
    "f_237195_": [],
    "f_237196_": {},
    "f_237197_": {}
  }

When trying to reconnect after this disconnect the error becomes:


[23:04:14] [Render thread/INFO] [me.je.co.ut.LoggedTimer/]: Building runtime took 1.197 s
[23:04:14] [Render thread/INFO] [me.je.li.lo.PluginCaller/]: Sending Runtime...
[23:04:14] [Render thread/INFO] [me.je.li.lo.PluginCaller/]: Sending Runtime took 627.8 ?s
[23:04:14] [Render thread/INFO] [me.je.co.ut.LoggedTimer/]: Starting JEI took 6.883 s
[23:04:14] [Render thread/INFO] [Treasure Bags/]: Read 9 bag types from server
[23:04:14] [Render thread/INFO] [FTB Chunks/]: Loading FTB Chunks client data from world 84b4e0fc-0006-460b-b41e-7f163405a815
[23:04:14] [Render thread/INFO] [Moonlight/]: Synced supplementaries-common.toml configs
[23:04:14] [Render thread/INFO] [Jade/]: Received config from the server: {}
[23:04:14] [Render thread/INFO] [survive/]: Clearing Client Side Armor Data
[23:04:14] [Render thread/INFO] [survive/]: Clearing Client Side Fluid Data
[23:04:14] [Render thread/INFO] [survive/]: Clearing Client Side Biome Data
[23:04:14] [Render thread/INFO] [me.je.fo.st.StartEventObserver/]: JEI StartEventObserver received class net.minecraftforge.client.event.ClientPlayerNetworkEvent$LoggingOut
java.lang.NullPointerException: Cannot invoke "com.mojang.blaze3d.platform.NativeImage.m_84988_(int, int, int)" because "this.renderedMapImage" is null
    at TRANSFORMER/ftbchunks@2001.2.2/dev.ftb.mods.ftbchunks.client.map.MapRegion.setRenderedMapImageRGBA(MapRegion.java:205)
    at TRANSFORMER/ftbchunks@2001.2.2/dev.ftb.mods.ftbchunks.client.map.RenderMapImageTask.runMapTask(RenderMapImageTask.java:256)
    at TRANSFORMER/ftbchunks@2001.2.2/dev.ftb.mods.ftbchunks.client.map.MapTask.run(MapTask.java:10)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
[23:04:14] [Render thread/INFO] [me.je.fo.st.StartEventObserver/]: JEI StartEventObserver transitioning state from JEI_STARTED to DISABLED

Howeve after trying to opena twilight blank map i got a full crash to desktop.

Reproduction Steps

  1. OPen medieval MC 1.20
  2. Find a blank map or spawn one with creative 3.right click it and crash/disconnect ...

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

WIndows 10

Minecraft Version

1.20

Modloader

Forge

Modpack Version

V15 HF

Optifine

No

Other Mods

No response

muon-rw commented 11 months ago

This is an error with Moonlight Lib itself which the developer has already fixed. Just update the mod.

This should be fixed in the next modpack update.