File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
api/src/main/java/com/viaversion/viaversion/api/type/types/misc Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,6 @@ public LengthPrefixedTagType(int maxLength) {
4040 @ Override
4141 public Tag read (final ByteBuf buffer ) {
4242 final int length = Types .VAR_INT .readPrimitive (buffer );
43- if (length <= 0 ) {
44- return null ;
45- }
4643
4744 Preconditions .checkArgument (length <= maxLength ,
4845 "Cannot receive tag longer than %s bytes (got %s bytes)" , maxLength , length );
@@ -52,11 +49,6 @@ public Tag read(final ByteBuf buffer) {
5249
5350 @ Override
5451 public void write (final ByteBuf buffer , final Tag tag ) {
55- if (tag == null ) {
56- Types .VAR_INT .writePrimitive (buffer , 0 );
57- return ;
58- }
59-
6052 final ByteBuf tempBuf = buffer .alloc ().buffer ();
6153 try {
6254 Types .TAG .write (tempBuf , tag );
You can’t perform that action at this time.
0 commit comments