#3315: Further fix for offline mode support

This commit is contained in:
bob7l 2022-06-07 16:16:36 -07:00 committed by md_5
parent a737a754d1
commit 8c0e4b1d33
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -216,6 +216,12 @@ public abstract class DefinedPacket
public static void writeProperties(Property[] properties, ByteBuf buf)
{
if ( properties == null )
{
writeVarInt( 0, buf );
return;
}
writeVarInt( properties.length, buf );
for ( Property prop : properties )
{