9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-30 04:29:05 +00:00

Fixed sculk veins not being recognized as vines.

This commit is contained in:
Vatuu
2022-07-26 21:40:28 +02:00
parent eac2ef7c6d
commit 8480a63dda
3 changed files with 36 additions and 6 deletions

View File

@@ -201,7 +201,8 @@ public class B {
TORCH,
SOUL_TORCH,
GLOW_LICHEN,
VINE
VINE,
SCULK_VEIN
}).forEach((i) -> b.add(i.ordinal()));
b.addAll(foliageCache);
@@ -674,4 +675,11 @@ public class B {
public static void registerCustomBlockData(String namespace, String key, BlockData blockData) {
custom.put(namespace + ":" + key, blockData);
}
public static boolean isVineBlock(BlockData data) {
return switch(data.getMaterial()) {
case VINE, SCULK_VEIN, GLOW_LICHEN -> true;
default -> false;
};
}
}