Clean up MaterialLib stack string docs and comments

This commit is contained in:
Ruling-0 committed 2026-10-12 15:23:56 -05:00
1 parent c2caa8c0d3
commit 383b78435d
2 files changed
+2 -4

No files matched your search

@@ -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));
@@ -8,10 +8,9 @@ import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.GameRegistry.UniqueIdentifier;
/// Resolves the `ml:<Material>:<shape>` 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) {