From e1ceb283ac8286d25f378fa507f261c35a36afcd Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 7 Jun 2022 21:36:49 +0200 Subject: [PATCH] Initialization fix Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/utils/ProtocolWrapper19.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FightSystem_19/src/de/steamwar/fightsystem/utils/ProtocolWrapper19.java b/FightSystem_19/src/de/steamwar/fightsystem/utils/ProtocolWrapper19.java index d0d0ba8..4626f83 100644 --- a/FightSystem_19/src/de/steamwar/fightsystem/utils/ProtocolWrapper19.java +++ b/FightSystem_19/src/de/steamwar/fightsystem/utils/ProtocolWrapper19.java @@ -107,10 +107,10 @@ public class ProtocolWrapper19 implements ProtocolWrapper { return null; } - private static final Reflection.ConstructorInvoker playerInfoDataConstructor = Reflection.getConstructor(Fight.playerInfoDataClass, GameProfile.class, int.class, Fight.enumGamemode, Fight.iChatBaseComponent); + private static final Reflection.ConstructorInvoker playerInfoDataConstructor = Reflection.getConstructor(Fight.playerInfoDataClass, GameProfile.class, int.class, Fight.enumGamemode, Fight.iChatBaseComponent, Reflection.getClass("net.minecraft.world.entity.player.ProfilePublicKey$a")); @Override public Object playerInfoDataConstructor(Object packet, GameProfile profile, Object mode) { - return playerInfoDataConstructor.invoke(profile, 0, mode, null); + return playerInfoDataConstructor.invoke(profile, 0, mode, null, null); } @Override