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 {