Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Hide out-of-range entity metadata IDs
The vanilla Java client gracefully ignores these.
Dieser Commit ist enthalten in:
Ursprung
117ebdd9c1
Commit
25921e1d67
@ -51,8 +51,9 @@ public class JavaSetEntityDataTranslator extends PacketTranslator<ClientboundSet
|
||||
EntityDefinition<?> definition = entity.getDefinition();
|
||||
for (EntityMetadata<?, ?> metadata : packet.getMetadata()) {
|
||||
if (metadata.getId() >= definition.translators().size()) {
|
||||
session.getGeyser().getLogger().warning("Metadata ID " + metadata.getId() + " is out of bounds of known entity metadata size " + definition.translators().size() + " for entity type " + entity.getDefinition().entityType());
|
||||
if (session.getGeyser().getConfig().isDebugMode()) {
|
||||
// Minecraft client just ignores these
|
||||
session.getGeyser().getLogger().warning("Metadata ID " + metadata.getId() + " is out of bounds of known entity metadata size " + definition.translators().size() + " for entity type " + entity.getDefinition().entityType());
|
||||
session.getGeyser().getLogger().debug(metadata.toString());
|
||||
}
|
||||
continue;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren