fix package

This commit is contained in:
zimzaza4
2024-07-03 11:19:09 +08:00
parent 427c4c3e89
commit 7a093d39aa
2 changed files with 2 additions and 4 deletions

View File

@@ -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<GeyserConnection, EntityScoreboard> 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);

View File

@@ -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.";