mirror of
https://github.com/TeamMidnightDust/Decorative.git
synced 2025-12-15 12:35:10 +01:00
fix: crash with certain mods that add wood types
This commit is contained in:
@@ -18,6 +18,7 @@ public class LogsWithAxes {
|
||||
public static void init() {
|
||||
WoodType.stream().forEach(woodType -> {
|
||||
String logName = woodType.name() + "_";
|
||||
if (logName.contains(":")) return;
|
||||
if (woodType.soundType() == BlockSoundGroup.NETHER_WOOD) logName += "stem";
|
||||
else if (woodType.soundType() == BlockSoundGroup.BAMBOO_WOOD) logName += "block";
|
||||
else logName += "log";
|
||||
|
||||
Reference in New Issue
Block a user