From 78d61d29b63e2a131df38092de0f5f610760b5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 5 May 2024 13:31:46 +0200 Subject: [PATCH] Finish lithium removal --- .../java/systems/brn/regexinghoppers/RegexingHoppers.java | 7 +------ .../regexinghoppers/mixin/HopperBlockEntityAccessor.java | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/systems/brn/regexinghoppers/RegexingHoppers.java b/src/main/java/systems/brn/regexinghoppers/RegexingHoppers.java index 94ee7bc..eb548fc 100644 --- a/src/main/java/systems/brn/regexinghoppers/RegexingHoppers.java +++ b/src/main/java/systems/brn/regexinghoppers/RegexingHoppers.java @@ -1,8 +1,4 @@ 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; @@ -33,8 +29,7 @@ public class RegexingHoppers implements ModInitializer { // Log entering the method with given parameters LOGGER.debug("Entering shouldNotMove with itemName: {}", itemName); - if (hopper instanceof NamedScreenHandlerFactory) { - NamedScreenHandlerFactory factory = (NamedScreenHandlerFactory) hopper; + if (hopper instanceof NamedScreenHandlerFactory factory) { String customName = factory.getDisplayName().getLiteralString(); // Log the custom name used for matching diff --git a/src/main/java/systems/brn/regexinghoppers/mixin/HopperBlockEntityAccessor.java b/src/main/java/systems/brn/regexinghoppers/mixin/HopperBlockEntityAccessor.java index df7f4d4..dd45e4b 100644 --- a/src/main/java/systems/brn/regexinghoppers/mixin/HopperBlockEntityAccessor.java +++ b/src/main/java/systems/brn/regexinghoppers/mixin/HopperBlockEntityAccessor.java @@ -3,7 +3,6 @@ package systems.brn.regexinghoppers.mixin; import net.minecraft.block.entity.HopperBlockEntity; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.gen.Accessor; -import org.spongepowered.asm.mixin.gen.Invoker; @Mixin(HopperBlockEntity.class) public interface HopperBlockEntityAccessor {