diff --git a/fabric-networking-v0/build.gradle b/fabric-networking-v0/build.gradle index 40b9ed1c8..2e3a6a74f 100644 --- a/fabric-networking-v0/build.gradle +++ b/fabric-networking-v0/build.gradle @@ -1,5 +1,5 @@ archivesBaseName = "fabric-networking-v0" -version = getSubprojectVersion(project, "0.1.0") +version = getSubprojectVersion(project, "0.1.1") dependencies { compile project(path: ':fabric-api-base', configuration: 'dev') diff --git a/fabric-networking-v0/src/main/java/net/fabricmc/fabric/impl/network/PacketRegistryImpl.java b/fabric-networking-v0/src/main/java/net/fabricmc/fabric/impl/network/PacketRegistryImpl.java index 1e97b8d02..f54e69bc4 100644 --- a/fabric-networking-v0/src/main/java/net/fabricmc/fabric/impl/network/PacketRegistryImpl.java +++ b/fabric-networking-v0/src/main/java/net/fabricmc/fabric/impl/network/PacketRegistryImpl.java @@ -125,7 +125,12 @@ public abstract class PacketRegistryImpl implements PacketRegistry { String s = sb.toString(); if (!s.isEmpty()) { - ids.add(new Identifier(s)); + try { + ids.add(new Identifier(s)); + } catch (InvalidIdentifierException e) { + LOGGER.warn("Received invalid identifier in " + id + ": " + s + " (" + e.getLocalizedMessage() + ")"); + LOGGER.trace(e); + } } }