Mark fields as internal

This commit is contained in:
FlorianMichael 2024-08-09 22:14:10 +02:00
parent adbd2ccc07
commit 8d4f4326ef
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 5 additions and 3 deletions

View File

@ -73,12 +73,14 @@ public class ClientsideFixes {
/**
* This identifier is an internal identifier used to identify packets that are sent by ViaFabricPlus
*/
@ApiStatus.Internal
public static final String PACKET_SYNC_IDENTIFIER = UUID.randomUUID() + ":" + UUID.randomUUID();
/**
* This is an incremental index used for tablist entries to implement FIFO behavior <= 1.7
*/
public static int GLOBAL_TABLIST_INDEX = 0;
@ApiStatus.Internal
public static int globalTablistIndex = 0;
/**
* Older versions only had unicode font support for some languages and therefore servers are expecting the client

View File

@ -257,7 +257,7 @@ public abstract class MixinClientPlayNetworkHandler extends ClientCommonNetworkH
}
this.onSynchronizeRecipes(new SynchronizeRecipesS2CPacket(recipes));
}
ClientsideFixes.GLOBAL_TABLIST_INDEX = 0;
ClientsideFixes.globalTablistIndex = 0;
((IPlayerListHud) MinecraftClient.getInstance().inGameHud.getPlayerListHud()).viaFabricPlus$setMaxPlayers(packet.maxPlayers());
}

View File

@ -29,7 +29,7 @@ import org.spongepowered.asm.mixin.Unique;
public abstract class MixinPlayerListEntry implements IPlayerListEntry {
@Unique
private final int viaFabricPlus$index = ClientsideFixes.GLOBAL_TABLIST_INDEX++;
private final int viaFabricPlus$index = ClientsideFixes.globalTablistIndex++;
@Override
public int viaFabricPlus$getIndex() {