Skip to content

Commit

Permalink
SpriteHelper: Added Environmental's leaves & Fixed #769
Browse files Browse the repository at this point in the history
  • Loading branch information
Xelbayria committed Jan 10, 2025
1 parent 1520c8c commit 3bdca90
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SpriteHelper {
};
public static final @NotNull Predicate<String> LOOKS_LIKE_LEAF_TEXTURE = (s) -> {
s = (new ResourceLocation(s)).getPath();
return !s.contains("_bushy") && !s.contains("_snow") && !s.contains("_overlay") && !s.contains("/snow");
return !s.contains("_top") && !s.contains("_bushy") && !s.contains("_snow") && !s.contains("_overlay") && !s.contains("/snow");
};

public static void addHardcodedSprites() {
Expand All @@ -45,6 +45,12 @@ public static void addHardcodedSprites() {
addOptional("minecraft:mushroom_stem", "_side", "minecraft:block/mushroom_stem");
addOptional("minecraft:mushroom_stem", "_top", "minecraft:block/mushroom_stem");

// Environmental
addOptional("environmental:pink_wisteria_leaves", "_leaves", "environmental:block/pink_wisteria_leaves");
addOptional("environmental:blue_wisteria_leaves", "_leaves", "environmental:block/blue_wisteria_leaves");
addOptional("environmental:purple_wisteria_leaves", "_leaves", "environmental:block/purple_wisteria_leaves");
addOptional("environmental:white_wisteria_leaves", "_leaves", "environmental:block/white_wisteria_leaves");

// Dawn Of The Time: Builder Edition
//REASON: the planks is actually being treated as a log instead of a planks
addOptional("dawnoftimebuilder:waxed_oak_planks", "_side", "dawnoftimebuilder:block/waxed_oak_planks");
Expand Down

0 comments on commit 3bdca90

Please sign in to comment.