mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-09-06 01:07:59 +02:00
Renamed class file
This commit is contained in:
parent
9e6a945a40
commit
29918be68c
@ -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
|
||||
|
@ -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 {
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user