1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00

Silently fail for invalid data components in block entity data

This commit is contained in:
onebeastchris
2025-10-25 15:11:01 +02:00
parent e2a82b3659
commit 3006fe390d

View File

@@ -191,9 +191,9 @@ public final class ItemStackParser {
try {
patch.put((DataComponentType<Parsed>) type, parser.parse(session, (Raw) raw));
} catch (ClassCastException exception) {
GeyserImpl.getInstance().getLogger().error("Received incorrect object type for component " + type + "!", exception);
GeyserImpl.getInstance().getLogger().debug("Received incorrect object type for component " + type + "!", exception);
} catch (Exception exception) {
GeyserImpl.getInstance().getLogger().error("Failed to parse component" + type + " from " + raw + "!", exception);
GeyserImpl.getInstance().getLogger().debug("Failed to parse component" + type + " from " + raw + "!", exception);
}
}