#3315: Further fix for offline mode support
This commit is contained in:
		| @@ -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 ) | ||||||
|         { |         { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 bob7l
					bob7l