mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 10:29:49 -05:00
apparently the null check was needed for the other check
This commit is contained in:
1 parent
30682d206f
commit
c074aebeef
1 file changed
+2
-2
@@ -45,8 +45,8 @@ public class PacketPlayOutScoreboardTeam extends UniversalPacketPlayOut{
|
||||
NAME.set(packet, team);
|
||||
if (ProtocolVersion.SERVER_VERSION.getMinorVersion() >= 13) {
|
||||
DISPLAYNAME.set(packet, MethodAPI.getInstance().ICBC_fromString(new IChatBaseComponent(team).toString()));
|
||||
if (prefix.length() > 0) PREFIX.set(packet, MethodAPI.getInstance().ICBC_fromString(new IChatBaseComponent(prefix).toString()));
|
||||
if (suffix.length() > 0) SUFFIX.set(packet, MethodAPI.getInstance().ICBC_fromString(new IChatBaseComponent(suffix).toString()));
|
||||
if (prefix != null && prefix.length() > 0) PREFIX.set(packet, MethodAPI.getInstance().ICBC_fromString(new IChatBaseComponent(prefix).toString()));
|
||||
if (suffix != null && suffix.length() > 0) SUFFIX.set(packet, MethodAPI.getInstance().ICBC_fromString(new IChatBaseComponent(suffix).toString()));
|
||||
CHATFORMAT.set(packet, EnumChatFormat.lastColorsOf(prefix).toNMS());
|
||||
} else {
|
||||
DISPLAYNAME.set(packet, team);
|
||||
|
||||
Reference in new issue
Block a user