badasintended / megane

glasses are really versatile
https://bai.lol/megane
16 stars 6 forks source link

Disconnect from the server when looking at Create trains (misunderstand) #77

Closed HLHTHoldWind closed 2 months ago

HLHTHoldWind commented 2 months ago

Looking at copycat block will cause this issue

Internal Exception: java.lang.NullPointerException: Cannot invoke "mcp.mobius.waila.api.IData$Serializer.read(net.minecraft.class_2540)" because "serializer" is null

deirn commented 2 months ago

Does this happens especially with Megane installed, or just WTHIT?

HLHTHoldWind commented 2 months ago

Does this happens especially with Megane installed, or just WTHIT?

with Megane, only install WTHIT will show copycat blocks correctly

deirn commented 2 months ago

Please send me the full log.

HLHTHoldWind commented 2 months ago

Please send me the full log.

I have done some test with this problem.

The error will not appear when using a pure environment (without other mods).

Only the copycat blocks on the train will cause this issue. The copycat panel from original Create mod also has this problem.

I don't know which mod cause this issue when running with copycat blocks. But the fact is this issue will only appear when I'm looking at some copycat blocks on the train.

This is the client log: https://mclo.gs/TaiieSF

This is the server console output: https://mclo.gs/LwVuYOG

HLHTHoldWind commented 2 months ago

Sorry, not only the copycat blocks. But other blocks will not cause this issue immediately. After you look at other blocks on the train for a few seconds, you will also disconnect from the server with the same reason.

HLHTHoldWind commented 2 months ago

This problem will not happen under local singleplayer game.

deirn commented 2 months ago

Try without Replay Mod, I've seen some issue with Replay Mod and other custom packets.

HLHTHoldWind commented 2 months ago

Try without Replay Mod, I've seen some issue with Replay Mod and other custom packets.

No effect, still having this problem after disabled Replay Mod. https://mclo.gs/11JDBSN

deirn commented 2 months ago

Oh, hmm... do you have Megane installed on the server? It needs to be installed there too.

HLHTHoldWind commented 2 months ago

Oh, hmm... do you have Megane installed on the server? It needs to be installed there too.

Oh gosh, I didn't see that Megane is different with WTHIT, it's a serverside mod. I will install it and have a try

HLHTHoldWind commented 2 months ago

Yes, it works well after install on the serverside. Just a mistake

deirn commented 2 months ago

Maybe I'll create a handshake packet to make sure Megane is on the server