From f5f4876182fb9a8c29b06cb470a5330e59b0e0f2 Mon Sep 17 00:00:00 2001 From: Hugo Kerstens Date: Sun, 27 Mar 2016 18:05:04 +0100 Subject: [PATCH] Add check for isPorted because server can be using 1.9 --- src/main/java/us/myles/ViaVersion/boss/ViaBossBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/us/myles/ViaVersion/boss/ViaBossBar.java b/src/main/java/us/myles/ViaVersion/boss/ViaBossBar.java index 94dd01eda..47abd63ae 100644 --- a/src/main/java/us/myles/ViaVersion/boss/ViaBossBar.java +++ b/src/main/java/us/myles/ViaVersion/boss/ViaBossBar.java @@ -144,7 +144,7 @@ public class ViaBossBar implements BossBar { } private void sendPacket(UUID uuid, ByteBuf buf) { - if (ViaVersion.getInstance().getPlayerVersion(uuid) > ProtocolVersion.V1_9) { + if (!ViaVersion.getInstance().isPorted(uuid) || !(ViaVersion.getInstance().getPlayerVersion(uuid) >= ProtocolVersion.V1_9)) { players.remove(uuid); return; }