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 686 forks source link

Unable to translate packets. #5078

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

Translate packets 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

描述 bug

[17:06:42 错误] 无法翻译数据包 ClientboundAddEntityPacket java.lang.NullPointerException:无法调用 “org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType.name()”,因为 “type” 在 org.geysermc.geyser.util.EntityUtils.translatedEntityName(EntityUtils.java:312) ~[Geyser.jar:?]在 org.geysermc.geyser.entity.type.Entity.standardDisplayName(Entity.java:455) ~[Geyser.jar:?]在 org.geysermc.geyser.entity.type.Entity。(Entity.java:145) ~[Geyser.jar:?]在 org.geysermc.geyser.entity.type.living.monster.EnderDragonPartEntity。(EnderDragonPartEntity.java:38) ~[Geyser.jar:?]在 org.geysermc.geyser.entity.type.living.monster.EnderDragonEntity.spawnEntity(EnderDragonEntity.java:120) ~[Geyser.jar:?]在 org.geysermc.geyser.session.cache.EntityCache.spawnEntity(EntityCache.java:72) ~[Geyser.jar:?]在 org.geysermc.geyser.translator.protocol.java.entity.spawn.JavaAddEntityTranslator.translate(JavaAddEntityTranslator.java:127) ~[Geyser.jar:?]

重现

目前没有。

预期行为

正常转换数据包。

截图/视频

无响应

服务器版本和插件

无响应

间歇泉垃圾场

无响应

间歇泉版本

1.21.1

Minecraft: Bedrock Edition 设备/版本

论文1.21.1

其他上下文

无响应

This happens when entering the End, where a fake block appears when death is reborn in the Overworld.

Tim203 commented 1 month ago

The latest build (687) should fix this issue