From 383b78435d227a73da0bde603d087ea28a96de5e Mon Sep 17 00:00:00 2001 From: Ruling-0 <47913168+Ruling-0@users.noreply.github.com> Date: Mon, 17 Aug 2026 14:12:21 -0500 Subject: [PATCH] Clean up MaterialLib stack string docs and comments --- src/main/java/forestry/core/utils/BlockUtil.java | 1 - src/main/java/forestry/core/utils/MaterialLibStacks.java | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/forestry/core/utils/BlockUtil.java b/src/main/java/forestry/core/utils/BlockUtil.java index f4a7ad063..a9a98b17d 100644 --- a/src/main/java/forestry/core/utils/BlockUtil.java +++ b/src/main/java/forestry/core/utils/BlockUtil.java @@ -265,7 +265,6 @@ public abstract class BlockUtil { } while (stillInside.test(tile)); block = world.getBlock(x, y - depth, z); - // Werkstoff blocks hold their material in the tile entity, so the world metadata is not the item damage. if (bw && BW_MetaGenerated_WerkstoffBlocksClass != null && BW_MetaGenerated_WerkstoffBlocksClass.isInstance(block)) { return new ItemStack(block, 1, block.getDamageValue(world, x, y - depth, z)); diff --git a/src/main/java/forestry/core/utils/MaterialLibStacks.java b/src/main/java/forestry/core/utils/MaterialLibStacks.java index b52ce74bb..ce7fd915e 100644 --- a/src/main/java/forestry/core/utils/MaterialLibStacks.java +++ b/src/main/java/forestry/core/utils/MaterialLibStacks.java @@ -8,10 +8,9 @@ import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.GameRegistry.UniqueIdentifier; /// Resolves the `ml::` stack string form, which names a MaterialLib item by material and shape -/// rather than by the metadata index that shifts between sessions. +/// rather than by a metadata index that shifts between sessions. /// -/// The only class naming a MaterialLib type. [Stack] loads it only once `materiallib` is present, so the dependency -/// stays soft. +/// MaterialLib types are named only here, so [Stack] can gate loading this class on `materiallib` being present. public abstract class MaterialLibStacks { public static Stack parse(String mlString) {