From 3bdca90c2bfc0e036f0c137975008f2494a11100 Mon Sep 17 00:00:00 2001 From: Xel'Bayria <12866666+Xelbayria@users.noreply.github.com> Date: Fri, 10 Jan 2025 14:51:55 -0700 Subject: [PATCH] SpriteHelper: Added Environmental's leaves & Fixed #769 --- .../net/mehvahdjukaar/every_compat/misc/SpriteHelper.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/net/mehvahdjukaar/every_compat/misc/SpriteHelper.java b/common/src/main/java/net/mehvahdjukaar/every_compat/misc/SpriteHelper.java index 107187a1..411610aa 100644 --- a/common/src/main/java/net/mehvahdjukaar/every_compat/misc/SpriteHelper.java +++ b/common/src/main/java/net/mehvahdjukaar/every_compat/misc/SpriteHelper.java @@ -32,7 +32,7 @@ public class SpriteHelper { }; public static final @NotNull Predicate 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() { @@ -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");