mirror of
https://github.com/GeyserExtensionists/GeyserUtils.git
synced 2025-12-19 15:09:24 +00:00
fix package
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user