Make resource-loader-v0's generated resource packs use the latest data version ()

This prevents incompatibility warnings about mod resource and data packs.
This commit is contained in:
Juuxel 2020-04-11 22:46:10 +03:00 committed by GitHub
parent 1a47cd78f6
commit 94c7834a50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions
fabric-resource-loader-v0
build.gradle
src/main/java/net/fabricmc/fabric/impl/resource/loader

View file

@ -1,2 +1,2 @@
archivesBaseName = "fabric-resource-loader-v0"
version = getSubprojectVersion(project, "0.1.12")
version = getSubprojectVersion(project, "0.1.13")

View file

@ -23,6 +23,7 @@ import java.util.List;
import com.google.common.base.Charsets;
import org.apache.commons.io.IOUtils;
import net.minecraft.SharedConstants;
import net.minecraft.resource.ResourcePack;
import net.minecraft.resource.ResourceType;
@ -34,7 +35,7 @@ import net.fabricmc.loader.api.metadata.ModMetadata;
* Internal utilities for managing resource packs.
*/
public final class ModResourcePackUtil {
public static final int PACK_FORMAT_VERSION = 4;
public static final int PACK_FORMAT_VERSION = SharedConstants.getGameVersion().getPackVersion();
private ModResourcePackUtil() { }