Finish lithium removal

This commit is contained in:
Bruno Rybársky 2024-05-05 13:31:46 +02:00
parent 211e658950
commit 78d61d29b6
2 changed files with 1 additions and 7 deletions

@ -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

@ -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 {