Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1759e3b22 |
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'fabric-loom' version '1.8-SNAPSHOT'
|
id 'fabric-loom' version '1.10-SNAPSHOT'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -4,9 +4,9 @@ org.gradle.parallel=true
|
|||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/develop
|
# check these on https://fabricmc.net/develop
|
||||||
minecraft_version=1.20.1
|
minecraft_version=1.21.1
|
||||||
yarn_mappings=1.20.1+build.10
|
yarn_mappings=1.21.1+build.3
|
||||||
loader_version=0.16.7
|
loader_version=0.16.11
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=dev
|
mod_version=dev
|
||||||
@@ -14,4 +14,4 @@ maven_group=dev.bigduckie
|
|||||||
archives_base_name=static-data
|
archives_base_name=static-data
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_version=0.92.2+1.20.1
|
fabric_version=0.115.4+1.21.1
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ public class StaticData {
|
|||||||
if (Files.isDirectory(globalStaticDataFolder)) {
|
if (Files.isDirectory(globalStaticDataFolder)) {
|
||||||
Path data = globalStaticDataFolder.resolve(name);
|
Path data = globalStaticDataFolder.resolve(name);
|
||||||
if (Files.exists(data) && !Files.isDirectory(data)) {
|
if (Files.exists(data) && !Files.isDirectory(data)) {
|
||||||
return Optional.of(new StaticDataItem(new Identifier(GLOBAL_DATA_NAMESPACE, name), data));
|
return Optional.of(new StaticDataItem(Identifier.of(GLOBAL_DATA_NAMESPACE, name), data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -246,10 +246,10 @@ public class StaticData {
|
|||||||
if (rel.startsWith("static_data/")) { //Should always be true
|
if (rel.startsWith("static_data/")) { //Should always be true
|
||||||
rel = rel.substring("static_data/".length());
|
rel = rel.substring("static_data/".length());
|
||||||
}
|
}
|
||||||
return new Identifier(container.getMetadata().getId(), rel);
|
return Identifier.of(container.getMetadata().getId(), rel);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Identifier toGlobalIdentifier(Path root, Path path) {
|
private static Identifier toGlobalIdentifier(Path root, Path path) {
|
||||||
return new Identifier(GLOBAL_DATA_NAMESPACE, getRelative(root, path));
|
return Identifier.of(GLOBAL_DATA_NAMESPACE, getRelative(root, path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user