GeyserMC / Geyser

A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.
https://geysermc.org
MIT License
4.75k stars 687 forks source link

Packets cannot be translated. #5077

Closed AsyncProxy closed 1 month ago

AsyncProxy commented 1 month ago

Describe the bug

[17:06:42 ERROR] 无法翻译数据包 ClientboundAddEntityPacket java.lang.NullPointerException: Cannot invoke "org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType.name()" because "type" is null at org.geysermc.geyser.util.EntityUtils.translatedEntityName(EntityUtils.java:312) ~[Geyser.jar:?] at org.geysermc.geyser.entity.type.Entity.standardDisplayName(Entity.java:455) ~[Geyser.jar:?] at org.geysermc.geyser.entity.type.Entity.(Entity.java:145) ~[Geyser.jar:?] at org.geysermc.geyser.entity.type.living.monster.EnderDragonPartEntity.(EnderDragonPartEntity.java:38) ~[Geyser.jar:?] at org.geysermc.geyser.entity.type.living.monster.EnderDragonEntity.spawnEntity(EnderDragonEntity.java:120) ~[Geyser.jar:?] at org.geysermc.geyser.session.cache.EntityCache.spawnEntity(EntityCache.java:72) ~[Geyser.jar:?] at org.geysermc.geyser.translator.protocol.java.entity.spawn.JavaAddEntityTranslator.translate(JavaAddEntityTranslator.java:127) ~[Geyser.jar:?]

To Reproduce

Not at the moment

Expected behaviour

Packets are translated normally.

Screenshots / Videos

No response

Server Version and Plugins

No response

Geyser Dump

No response

Geyser Version

1.21.1

Minecraft: Bedrock Edition Device/Version

paper1.21.1

Additional Context

No response

AsyncProxy commented 1 month ago

Describe the bug

[17:06:42 ERROR] 无法翻译数据包 ClientboundAddEntityPacket java.lang.NullPointerException: Cannot invoke "org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType.name()" because "type" is null at org.geysermc.geyser.util.EntityUtils.translatedEntityName(EntityUtils.java:312) ~[Geyser.jar:?] at org.geysermc.geyser.entity.type.Entity.standardDisplayName(Entity.java:455) ~[Geyser.jar:?] at org.geysermc.geyser.entity.type.Entity.(Entity.java:145) ~[Geyser.jar:?] at org.geysermc.geyser.entity.type.living.monster.EnderDragonPartEntity.(EnderDragonPartEntity.java:38) ~[Geyser.jar:?] at org.geysermc.geyser.entity.type.living.monster.EnderDragonEntity.spawnEntity(EnderDragonEntity.java:120) ~[Geyser.jar:?] at org.geysermc.geyser.session.cache.EntityCache.spawnEntity(EntityCache.java:72) ~[Geyser.jar:?] at org.geysermc.geyser.translator.protocol.java.entity.spawn.JavaAddEntityTranslator.translate(JavaAddEntityTranslator.java:127) ~[Geyser.jar:?]

To Reproduce

Not at the moment

Expected behaviour

Packets are translated normally.

Screenshots / Videos

No response

Server Version and Plugins

No response

Geyser Dump

No response

Geyser Version

1.21.1

Minecraft: Bedrock Edition Device/Version

paper1.21.1

Additional Context

No response