Renamed class file

This commit is contained in:
FlorianMichael 2023-11-27 17:34:47 +01:00
parent 9e6a945a40
commit 29918be68c
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ import de.florianmichael.viafabricplus.event.ChangeProtocolVersionCallback;
import de.florianmichael.viafabricplus.event.DisconnectCallback;
import de.florianmichael.viafabricplus.event.LoadClassicProtocolExtensionCallback;
import de.florianmichael.viafabricplus.event.PostGameLoadCallback;
import de.florianmichael.viafabricplus.fixes.data.PackVersionDiff;
import de.florianmichael.viafabricplus.fixes.data.ResourcePackHeaderDiff;
import de.florianmichael.viafabricplus.fixes.entity.EntityDimensionReplacements;
import de.florianmichael.viafabricplus.fixes.classic.CPEAdditions;
import de.florianmichael.viafabricplus.fixes.classic.GridItemSelectionScreen;
@ -67,7 +67,7 @@ public class ClientsideFixes {
CPEAdditions.modifyMappings();
// Check if the pack format mappings are correct
PackVersionDiff.checkOutdated();
ResourcePackHeaderDiff.checkOutdated();
PostGameLoadCallback.EVENT.register(() -> {
// Handles and updates entity dimension changes in <= 1.17

View File

@ -30,7 +30,7 @@ import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class PackVersionDiff {
public class ResourcePackHeaderDiff {
private final static Map<VersionEnum, GameVersion> GAME_VERSION_DIFF = new HashMap<>();
static {

View File

@ -23,7 +23,7 @@ import com.google.common.hash.HashCode;
import com.google.common.hash.Hashing;
import com.google.common.io.Files;
import com.llamalad7.mixinextras.sugar.Local;
import de.florianmichael.viafabricplus.fixes.data.PackVersionDiff;
import de.florianmichael.viafabricplus.fixes.data.ResourcePackHeaderDiff;
import de.florianmichael.viafabricplus.protocolhack.ProtocolHack;
import net.minecraft.GameVersion;
import net.minecraft.client.resource.ServerResourcePackProvider;
@ -47,7 +47,7 @@ public abstract class MixinServerResourcePackProvider {
@Redirect(method = "getDownloadHeaders", at = @At(value = "INVOKE", target = "Lnet/minecraft/SharedConstants;getGameVersion()Lnet/minecraft/GameVersion;"))
private static GameVersion editHeaders() {
return PackVersionDiff.get(ProtocolHack.getTargetVersion());
return ResourcePackHeaderDiff.get(ProtocolHack.getTargetVersion());
}
@Inject(method = "getDownloadHeaders", at = @At("TAIL"), cancellable = true)