diff options
| author | neoforge-mdk-automation[bot] <173375039+neoforge-mdk-automation[bot]@users.noreply.github.com> | 2025-06-12 21:29:15 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-12 21:29:15 +0800 |
| commit | b496094ed4155595811d9e84a37e197c12ae65c6 (patch) | |
| tree | 8c105abcfe4232a25e68d6161a7dec5cec43efa6 /src/main/java/com/example/examplemod/ExampleMod.java | |
| parent | 90dd7a64391827525d792268c99cfc5a0e86c2e9 (diff) | |
Update MDK with new output from mod generator (#2)
Co-authored-by: NeoForge MDK Automation <173375039+neoforge-mdk-automation[bot]@users.noreply.github.com>
Diffstat (limited to 'src/main/java/com/example/examplemod/ExampleMod.java')
| -rw-r--r-- | src/main/java/com/example/examplemod/ExampleMod.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/example/examplemod/ExampleMod.java b/src/main/java/com/example/examplemod/ExampleMod.java index 835a48d..5e5a0c1 100644 --- a/src/main/java/com/example/examplemod/ExampleMod.java +++ b/src/main/java/com/example/examplemod/ExampleMod.java @@ -98,12 +98,12 @@ public class ExampleMod // Some common setup code LOGGER.info("HELLO FROM COMMON SETUP"); - if (Config.logDirtBlock) + if (Config.LOG_DIRT_BLOCK.getAsBoolean()) LOGGER.info("DIRT BLOCK >> {}", BuiltInRegistries.BLOCK.getKey(Blocks.DIRT)); - LOGGER.info(Config.magicNumberIntroduction + Config.magicNumber); + LOGGER.info("{}{}", Config.MAGIC_NUMBER_INTRODUCTION.get(), Config.MAGIC_NUMBER.getAsInt()); - Config.items.forEach((item) -> LOGGER.info("ITEM >> {}", item.toString())); + Config.ITEM_STRINGS.get().forEach((item) -> LOGGER.info("ITEM >> {}", item)); } // Add the example block item to the building blocks tab |
