diff --git a/common/src/main/java/net/caffeinemc/mods/lithium/common/hopper/LithiumDoubleInventory.java b/common/src/main/java/net/caffeinemc/mods/lithium/common/hopper/LithiumDoubleInventory.java index d1cbd4545..c370df444 100644 --- a/common/src/main/java/net/caffeinemc/mods/lithium/common/hopper/LithiumDoubleInventory.java +++ b/common/src/main/java/net/caffeinemc/mods/lithium/common/hopper/LithiumDoubleInventory.java @@ -6,7 +6,7 @@ import net.caffeinemc.mods.lithium.common.block.entity.inventory_change_tracking.InventoryChangeListener; import net.caffeinemc.mods.lithium.common.block.entity.inventory_change_tracking.InventoryChangeTracker; import net.caffeinemc.mods.lithium.common.block.entity.inventory_comparator_tracking.ComparatorTracker; -import net.caffeinemc.mods.lithium.mixin.block.hopper.DoubleInventoryAccessor; +import net.caffeinemc.mods.lithium.mixin.block.hopper.CompoundContainerAccessor; import net.minecraft.core.Direction; import net.minecraft.core.NonNullList; import net.minecraft.world.CompoundContainer; @@ -32,8 +32,8 @@ public class LithiumDoubleInventory extends CompoundContainer implements Lithium * @return The only non-removed LithiumDoubleInventory instance for the double inventory. Null if not compatible */ public static LithiumDoubleInventory getLithiumInventory(CompoundContainer doubleInventory) { - Container vanillaFirst = ((DoubleInventoryAccessor) doubleInventory).getFirst(); - Container vanillaSecond = ((DoubleInventoryAccessor) doubleInventory).getSecond(); + Container vanillaFirst = ((CompoundContainerAccessor) doubleInventory).getFirst(); + Container vanillaSecond = ((CompoundContainerAccessor) doubleInventory).getSecond(); if (vanillaFirst != vanillaSecond && vanillaFirst instanceof LithiumInventory first && vanillaSecond instanceof LithiumInventory second) { LithiumDoubleInventory newDoubleInventory = new LithiumDoubleInventory(first, second); LithiumDoubleStackList doubleStackList = LithiumDoubleStackList.getOrCreate( diff --git a/common/src/main/java/net/caffeinemc/mods/lithium/common/hopper/LithiumDoubleStackList.java b/common/src/main/java/net/caffeinemc/mods/lithium/common/hopper/LithiumDoubleStackList.java index 14b45cac2..24ca1ac68 100644 --- a/common/src/main/java/net/caffeinemc/mods/lithium/common/hopper/LithiumDoubleStackList.java +++ b/common/src/main/java/net/caffeinemc/mods/lithium/common/hopper/LithiumDoubleStackList.java @@ -1,7 +1,7 @@ package net.caffeinemc.mods.lithium.common.hopper; import net.caffeinemc.mods.lithium.common.block.entity.inventory_change_tracking.InventoryChangeTracker; -import net.caffeinemc.mods.lithium.mixin.block.hopper.DoubleInventoryAccessor; +import net.caffeinemc.mods.lithium.mixin.block.hopper.CompoundContainerAccessor; import net.minecraft.world.CompoundContainer; import net.minecraft.world.Container; import net.minecraft.world.item.ItemStack; @@ -115,10 +115,10 @@ public void clearSignalStrengthOverride() { public void runComparatorUpdatePatternOnFailedExtract(LithiumStackList masterStackList, Container inventory) { if (inventory instanceof CompoundContainer) { this.first.runComparatorUpdatePatternOnFailedExtract( - this, ((DoubleInventoryAccessor)inventory).getFirst() + this, ((CompoundContainerAccessor) inventory).getFirst() ); this.second.runComparatorUpdatePatternOnFailedExtract( - this, ((DoubleInventoryAccessor)inventory).getSecond() + this, ((CompoundContainerAccessor) inventory).getSecond() ); } }