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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user