mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-03 10:39:57 -04:00
Make resource-loader-v0's generated resource packs use the latest data version (#559)
This prevents incompatibility warnings about mod resource and data packs.
This commit is contained in:
parent
1a47cd78f6
commit
94c7834a50
2 changed files with 3 additions and 2 deletions
fabric-resource-loader-v0
|
@ -1,2 +1,2 @@
|
|||
archivesBaseName = "fabric-resource-loader-v0"
|
||||
version = getSubprojectVersion(project, "0.1.12")
|
||||
version = getSubprojectVersion(project, "0.1.13")
|
||||
|
|
|
@ -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() { }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue