Skip to content

Commit 9ed0145

Browse files
committed
🌱 Change log:
- bugfix 🐞 Known Bugs: - πŸ“‹ Backlog: -
1 parent 3be7d99 commit 9ed0145

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

β€Žbuild.gradleβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = 'com.github.razorplay.packet_handler'
9-
version = '1.2.0-SNAPSHOT'
9+
version = '1.2.1-SNAPSHOT'
1010

1111
repositories {
1212
mavenCentral()

β€Žsrc/main/java/com/github/razorplay/packet_handler/network/network_util/PacketDataSerializer.javaβ€Ž

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -774,13 +774,9 @@ public <T> T readNullable(ThrowingFunction<PacketDataSerializer, T> valueReader)
774774
* @param <T> The type of the custom serializable object
775775
* @throws IllegalStateException if not in writing mode
776776
*/
777-
public <T extends CustomSerializable> void writeCustom(T object) throws PacketSerializationException {
777+
public <T extends CustomSerializable> void writeCustom(T object) {
778778
if (isNotWriting()) throw new IllegalStateException(NOT_WRITING_ERROR);
779-
try {
780-
object.serialize(this);
781-
} catch (Exception e) {
782-
throw new PacketSerializationException("Failed to serialize custom object", e);
783-
}
779+
object.serialize(this);
784780
}
785781

786782
/**

0 commit comments

Comments
Β (0)