From 211e6589500bf02d0eb0f52ad64a8a46d81cb302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 5 May 2024 13:30:40 +0200 Subject: [PATCH] Lithium --- gradle.properties | 2 +- .../java/systems/brn/regexinghoppers/RegexingHoppers.java | 4 +++- src/main/resources/fabric.mod.json | 6 ++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index e5fe971..ea9217e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G loader_version=0.15.11 # Mod Properties - mod_version = 1.0 + mod_version = 1.1 maven_group = systems.brn archives_base_name = RegexingHoppers diff --git a/src/main/java/systems/brn/regexinghoppers/RegexingHoppers.java b/src/main/java/systems/brn/regexinghoppers/RegexingHoppers.java index 9425c84..94ee7bc 100644 --- a/src/main/java/systems/brn/regexinghoppers/RegexingHoppers.java +++ b/src/main/java/systems/brn/regexinghoppers/RegexingHoppers.java @@ -1,5 +1,8 @@ package systems.brn.regexinghoppers; +import me.jellysquid.mods.lithium.common.LithiumMod; +import me.jellysquid.mods.lithium.common.config.LithiumConfig; +import me.jellysquid.mods.lithium.common.config.Option; import net.fabricmc.api.ModInitializer; import net.minecraft.block.entity.HopperBlockEntity; import net.minecraft.inventory.Inventory; @@ -23,7 +26,6 @@ public class RegexingHoppers implements ModInitializer { // This code runs as soon as Minecraft is in a mod-load-ready state. // However, some things (like resources) may still be uninitialized. // Proceed with mild caution. - LOGGER.info("RegexingHoppers initialized!"); } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 12624cd..c15ec23 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -25,5 +25,11 @@ "fabricloader": ">=${loader_version}", "fabric": "*", "minecraft": "${minecraft_version}" + }, + "custom": { + "_lithium_toggle_comment": "We disable the mixin_block_hopper mixin as this makes the filtering function not call if you have a filtering hopper after another hopper.", + "lithium:options": { + "mixin.block.hopper": false + } } }