Add check for isPorted because server can be using 1.9

This commit is contained in:
Hugo Kerstens 2016-03-27 18:05:04 +01:00
parent 293c1229ff
commit f5f4876182

View File

@ -144,7 +144,7 @@ public class ViaBossBar implements BossBar {
} }
private void sendPacket(UUID uuid, ByteBuf buf) { 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); players.remove(uuid);
return; return;
} }