From 68d6442c01b1999190e338b1b1a31611b3fb5870 Mon Sep 17 00:00:00 2001 From: Peakstep233 Date: Sat, 11 Dec 2021 14:05:06 +0800 Subject: [PATCH] Version 1.4.1 : Remove log4j methods A quick fix --- gradle.properties | 2 +- .../intelligentcreations/randore/RandoreMod.kt | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/gradle.properties b/gradle.properties index e5a69e7..0154901 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,7 +16,7 @@ loom_version=0.10-SNAPSHOT config_version=0.5.1-beta # Mod Properties -mod_version = 1.4.0-1.18 +mod_version = 1.4.1-1.18 maven_group = dev.intelligentcreations archives_base_name = randore diff --git a/src/main/kotlin/dev/intelligentcreations/randore/RandoreMod.kt b/src/main/kotlin/dev/intelligentcreations/randore/RandoreMod.kt index 7bb56d3..129d375 100644 --- a/src/main/kotlin/dev/intelligentcreations/randore/RandoreMod.kt +++ b/src/main/kotlin/dev/intelligentcreations/randore/RandoreMod.kt @@ -29,7 +29,8 @@ import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags import net.minecraft.block.Block import net.minecraft.block.Blocks import net.minecraft.block.Material -import net.minecraft.item.* +import net.minecraft.item.BlockItem +import net.minecraft.item.ItemGroup import net.minecraft.structure.rule.BlockMatchRuleTest import net.minecraft.util.Identifier import net.minecraft.util.registry.BuiltinRegistries @@ -41,8 +42,6 @@ import net.minecraft.world.gen.decorator.CountPlacementModifier import net.minecraft.world.gen.decorator.HeightRangePlacementModifier import net.minecraft.world.gen.decorator.SquarePlacementModifier import net.minecraft.world.gen.feature.* -import org.apache.logging.log4j.LogManager -import org.apache.logging.log4j.Logger class RandoreMod : ModInitializer { @@ -89,7 +88,7 @@ class RandoreMod : ModInitializer { ) ) } else { - LOGGER.info("Not generating random ores.") + System.out.println("Not generating random ores."); } if (dsrandomoregen) { @@ -109,7 +108,7 @@ class RandoreMod : ModInitializer { ) ) } else { - LOGGER.info("Not generating deepslate random ores.") + System.out.println("Not generating deepslate random ores."); } if (nrandomoregen) { @@ -129,7 +128,7 @@ class RandoreMod : ModInitializer { ) ) } else { - LOGGER.info("Not generating nether random ores.") + System.out.println("Not generating nether random ores."); } if (erandomoregen) { @@ -149,13 +148,11 @@ class RandoreMod : ModInitializer { ) ) } else { - LOGGER.info("Not generating end random ores.") + System.out.println("Not generating end random ores."); } } companion object { - val LOGGER: Logger = LogManager.getLogger("Rand'Ore") - //Ore Blocks val RANDOM_ORE: Block = Block(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool().breakByTool(FabricToolTags.PICKAXES, 2)) val DEEPSLATE_RANDOM_ORE: Block = Block(FabricBlockSettings.of(Material.STONE).strength(6.0f).requiresTool().breakByTool(FabricToolTags.PICKAXES, 3))