mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-01-22 21:42:44 +01:00
Mark fields as internal
This commit is contained in:
parent
adbd2ccc07
commit
8d4f4326ef
@ -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
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user