Skip to content

Commit

Permalink
Update to rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Nov 28, 2024
1 parent 7a4f7fe commit 25c25ff
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ org.gradle.jvmargs=-Xmx4G
# Fabric Properties
# check these on https://fabricmc.net/use

minecraft_version=1.21.4-pre3
yarn_mappings=1.21.4-pre3+build.2
minecraft_version=1.21.4-rc1
yarn_mappings=1.21.4-rc1+build.1
loader_version=0.16.9

# Fabric API
fabric_version=0.110.2+1.21.4

maven_group = eu.pb4

mod_version = 0.11.0-alpha.1
mod_version = 0.11.0

minecraft_version_supported = ">=1.21.4-"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private PolymerCommonUtils() {}

public static final SimpleEvent<ResourcePackChangeCallback> ON_RESOURCE_PACK_STATUS_CHANGE = new SimpleEvent<>();
private static Path cachedClientPath;
private final static String SAFE_CLIENT_SHA1 = "b6959dbb500a337a3a26c0ab3ca27216750bcd9f";
private final static String SAFE_CLIENT_SHA1 = "e879469d52776f40a14fe8472e8a02dafdf4dc27";
private final static String SAFE_CLIENT_URL = "https://piston-data.mojang.com/v1/objects/" + SAFE_CLIENT_SHA1 + "/client.jar";
private static Path cachedClientJarRoot;

Expand Down
12 changes: 10 additions & 2 deletions polymer-core/src/testmod/java/eu/pb4/polymertest/TestMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import net.minecraft.village.VillagerProfession;
import net.minecraft.world.GameMode;
import net.minecraft.world.World;
import org.apache.commons.lang3.mutable.MutableInt;
import xyz.nucleoid.server.translations.api.LocalizationTarget;

import java.io.IOException;
Expand Down Expand Up @@ -500,19 +501,26 @@ public void onInitialize() {
new Thread(() -> {
var vanillaJar = PolymerCommonUtils.getClientJarRoot();

var itemsBase = vanillaJar.resolve("assets/minecraft/items/");
var itemsBase = vanillaJar.resolve("/assets/minecraft/items/");

try {
var value = new MutableInt();
var count = new MutableInt();
Files.walk(itemsBase, 1).forEach(path -> {
if (path.equals(itemsBase)) {
return;
}
count.increment();
try {
var asset = ItemAsset.fromJson(Files.readString(path));
//System.out.println(path + ">" + asset);
value.increment();
} catch (Throwable e) {
System.err.println("Error while parsing file: " + path);
e.printStackTrace();
}

});
System.out.println("Parsed " + value + " out of " + count + " models!");
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 25c25ff

Please sign in to comment.