Fixed chat packets

This commit is contained in:
LOOHP
2022-12-08 17:43:13 +00:00
parent 081776e4fe
commit ca186938f4
7 changed files with 16 additions and 23 deletions
@@ -43,9 +43,7 @@ public class KeyedBossBar {
protected final AtomicBoolean valid;
private final Unsafe unsafe;
@SuppressWarnings("DeprecatedIsStillUsed")
@Deprecated
public KeyedBossBar(Key key, BossBar properties) {
KeyedBossBar(Key key, BossBar properties) {
this.uuid = UUID.randomUUID();
this.key = key;
this.properties = properties;
@@ -19,10 +19,18 @@
package com.loohp.limbo.bossbar;
import net.kyori.adventure.bossbar.BossBar;
import net.kyori.adventure.key.Key;
@SuppressWarnings("DeprecatedIsStillUsed")
@Deprecated
public class Unsafe {
@Deprecated
public static KeyedBossBar create(Key key, BossBar properties) {
return new KeyedBossBar(key, properties);
}
private final KeyedBossBar instance;
protected Unsafe(KeyedBossBar instance) {