Skip to content

Commit

Permalink
Merge branch 'architectury-1.17.1' into architectury-1.16.5
Browse files Browse the repository at this point in the history
# Conflicts:
#	common/src/main/java/com/unlikepaladin/pfm/blocks/models/ModelHelper.java
  • Loading branch information
UnlikePaladin committed Dec 28, 2023
2 parents 674ba2a + 205c317 commit 90d853a
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ public static Identifier getTextureId(Block block, String postfix) {
BakedModel model = MinecraftClient.getInstance().getBakedModelManager().getBlockModels().getModel(block.getDefaultState());
if (model != null) {
id = ((BakedQuadAccessor)model.getQuads(block.getDefaultState(), Direction.UP, new Random(42L)).get(0)).pfm$getSprite().getId();
if (id != null) {
if (id != null && id != MissingSprite.getMissingSpriteId()) {
blockToTextureMap.put(pair, new Pair<>(id, attemptNum));
return id;
}
id = ((BakedQuadAccessor)model.getQuads(block.getDefaultState(), Direction.DOWN, new Random(42L)).get(0)).pfm$getSprite().getId();
if (id != null) {
if (id != null && id != MissingSprite.getMissingSpriteId()) {
blockToTextureMap.put(pair, new Pair<>(id, attemptNum));
return id;
}
Expand Down Expand Up @@ -269,6 +269,9 @@ public static Identifier getPlankId(Block block) {
path = path.replace("ultra_", "").replace("_ultra", "");
path = "ultra_space/" + path;
}
if (namespace.equals("blue_skies")) {
path = "wood/" + path;
}
id = new Identifier(namespace, "block/" + path);
path = path.replace("mining", "mine").replace("sorting", "sort").replace("transformation", "trans").replace("dark", "darkwood").replace("alpha_", "alpha_oak_").replace("flowering_pink", "flowerypink").replace("flowering_purple", "floweringpurple");
Identifier id2 = new Identifier(namespace, "block/wood/" + path);
Expand Down Expand Up @@ -313,6 +316,9 @@ public static Identifier getLogId(Block block, String postFix) {
path = path.replace("ultra_", "").replace("_ultra", "");
path = "ultra_space/" + path;
}
if (namespace.equals("blue_skies")) {
path = "wood/" + path;
}
if (namespace.equals("byg") && path.contains("pedu"))
path = path.replace("pedu", "log");
if (path.contains("log") || path.contains("stem")) {
Expand Down

0 comments on commit 90d853a

Please sign in to comment.