#3315: Further fix for offline mode support
This commit is contained in:
parent
a737a754d1
commit
8c0e4b1d33
@ -216,6 +216,12 @@ public abstract class DefinedPacket
|
|||||||
|
|
||||||
public static void writeProperties(Property[] properties, ByteBuf buf)
|
public static void writeProperties(Property[] properties, ByteBuf buf)
|
||||||
{
|
{
|
||||||
|
if ( properties == null )
|
||||||
|
{
|
||||||
|
writeVarInt( 0, buf );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
writeVarInt( properties.length, buf );
|
writeVarInt( properties.length, buf );
|
||||||
for ( Property prop : properties )
|
for ( Property prop : properties )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user