From c4c48b5ae214f229d5b92efb2b37adf89b0d3615 Mon Sep 17 00:00:00 2001 From: khj xiaogu <54445543+khjxiaogu@users.noreply.github.com> Date: Wed, 27 Oct 2021 01:26:55 +0800 Subject: [PATCH] I don't think so. --- src/main/java/com/teammoeg/steampowered/SPConfig.java | 6 +++--- .../steampowered/content/alternator/DynamoBlock.java | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/teammoeg/steampowered/SPConfig.java b/src/main/java/com/teammoeg/steampowered/SPConfig.java index c02876e..0d4ff54 100644 --- a/src/main/java/com/teammoeg/steampowered/SPConfig.java +++ b/src/main/java/com/teammoeg/steampowered/SPConfig.java @@ -134,7 +134,7 @@ public class SPConfig { public final ForgeConfigSpec.BooleanValue allowUnverifiedContraption; public final ForgeConfigSpec.BooleanValue allowCartAssembler; - public final ForgeConfigSpec.BooleanValue disableDynamo; + //public final ForgeConfigSpec.BooleanValue disableDynamo; Server(ForgeConfigSpec.Builder builder) { builder.push("createmodify"); @@ -145,7 +145,7 @@ public class SPConfig { builder.pop(); builder.push("dynamo"); { - disableDynamo = builder + /*disableDynamo = builder .comment("Set to true to DISABLE the DynamoBlock ONLY when Create: Crafts & Additions is loaded") .comment("Create: Crafts & Additions is a mod which provides a similar electricity generation device called Alternator") .comment("For pack developers who think having two similar devices is superfluous, you have two choices:") @@ -159,7 +159,7 @@ public class SPConfig { .comment("the code implementation of the Alternator created by MRH0, which is under MIT License") .comment("We acknowledge and appreciate the great work done by MRH0. We learn from his code") .comment("MRH0 is also under our credits list in mods.toml description") - .define("disableDynamo", false); + .define("disableDynamo", false);*/ } builder.pop(); } diff --git a/src/main/java/com/teammoeg/steampowered/content/alternator/DynamoBlock.java b/src/main/java/com/teammoeg/steampowered/content/alternator/DynamoBlock.java index 7bb96a8..218cd28 100644 --- a/src/main/java/com/teammoeg/steampowered/content/alternator/DynamoBlock.java +++ b/src/main/java/com/teammoeg/steampowered/content/alternator/DynamoBlock.java @@ -117,16 +117,16 @@ public class DynamoBlock extends DirectionalKineticBlock implements ITE itemStacks) { if (ModList.get().isLoaded("createaddition") && SPConfig.SERVER.disableDynamo.get()) { // removes dynamo from creative tab when CC&A is loaded AND config is set to true } else { super.fillItemCategory(group, itemStacks); } - } + }*/ - @Override + /* @Override public void appendHoverText(ItemStack i, IBlockReader w, List t, ITooltipFlag f) { t.add(new StringTextComponent("We adapt and appreciate MRH0's code").withStyle(TextFormatting.GRAY)); if (ModList.get().isLoaded("createaddition")) { @@ -135,7 +135,7 @@ public class DynamoBlock extends DirectionalKineticBlock implements ITE