From 6d6fbb5efa06259166cc2e6f56e6320bf0d6316d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 17 Feb 2019 10:13:24 +1100 Subject: [PATCH] Fix two minor formatting issues --- proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java | 2 +- .../java/net/md_5/bungee/util/ChatComponentTransformer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java index af4da071..1ecee69e 100644 --- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java +++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java @@ -242,7 +242,7 @@ public abstract class EntityMap private static void readSkipSlot(ByteBuf packet, int protocolVersion) { - if ( (protocolVersion >= ProtocolConstants.MINECRAFT_1_13_2) ? packet.readBoolean() : packet.readShort() != -1 ) + if ( ( protocolVersion >= ProtocolConstants.MINECRAFT_1_13_2 ) ? packet.readBoolean() : packet.readShort() != -1 ) { if ( protocolVersion >= ProtocolConstants.MINECRAFT_1_13_2 ) { diff --git a/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java b/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java index ad26893e..d69c35d9 100644 --- a/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java +++ b/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java @@ -51,7 +51,7 @@ public final class ChatComponentTransformer */ public BaseComponent[] transform(ProxiedPlayer player, BaseComponent... component) { - if ( component == null || component.length < 1 || ( component.length == 1 && component[0] == null ) ) + if ( component == null || component.length < 1 || ( component.length == 1 && component[0] == null ) ) { return new BaseComponent[] {