diff --git a/geyser/src/main/java/me/zimzaza4/geyserutils/geyser/GeyserUtils.java b/geyser/src/main/java/me/zimzaza4/geyserutils/geyser/GeyserUtils.java index cfff07e..9302f0a 100644 --- a/geyser/src/main/java/me/zimzaza4/geyserutils/geyser/GeyserUtils.java +++ b/geyser/src/main/java/me/zimzaza4/geyserutils/geyser/GeyserUtils.java @@ -4,7 +4,6 @@ import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.google.gson.JsonElement; import com.google.gson.JsonParser; -import it.unimi.dsi.fastutil.bytes.ByteArrays; import lombok.Getter; import me.zimzaza4.geyserutils.common.camera.data.CameraPreset; import me.zimzaza4.geyserutils.common.camera.instruction.ClearInstruction; @@ -92,7 +91,7 @@ public class GeyserUtils implements Extension { public static Map scoreboards = new ConcurrentHashMap<>(); public static ItemParticlesMappings particlesMappings = new ItemParticlesMappings(); - static Cape EMPTY_CAPE = new Cape("", "no-cape", ByteArrays.EMPTY_ARRAY, true); + static Cape EMPTY_CAPE = new Cape("", "no-cape", new byte[0], true); diff --git a/geyser/src/main/java/me/zimzaza4/geyserutils/geyser/util/ReflectionUtils.java b/geyser/src/main/java/me/zimzaza4/geyserutils/geyser/util/ReflectionUtils.java index a9e4969..be68c23 100644 --- a/geyser/src/main/java/me/zimzaza4/geyserutils/geyser/util/ReflectionUtils.java +++ b/geyser/src/main/java/me/zimzaza4/geyserutils/geyser/util/ReflectionUtils.java @@ -6,7 +6,6 @@ import org.geysermc.geyser.api.util.PlatformType; import org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundCustomPayloadPacket; import org.geysermc.mcprotocollib.protocol.packet.common.serverbound.ServerboundCustomPayloadPacket; -import java.lang.reflect.Array; import java.lang.reflect.Constructor; import java.lang.reflect.Method; @@ -31,7 +30,7 @@ public class ReflectionUtils { @SneakyThrows public static void init() { PlatformType type = GeyserImpl.getInstance().platformType(); - if (type == PlatformType.STANDALONE) { + if (type == PlatformType.STANDALONE || type == PlatformType.VELOCITY) { prefix = ""; } else { prefix = "org.geysermc.geyser.platform." + type.platformName().toLowerCase() + ".shaded.";