fix fluid storage bus trigger

This commit is contained in:
GlodBlock committed 2023-01-24 15:48:10 +08:00
1 parent 96ba5e2997
commit ea4014fc1e
1 file changed
+4
@@ -56,6 +56,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Vec3;
import net.minecraftforge.fluids.IFluidHandler;
public class PartFluidStorageBus extends PartUpgradeable
implements IGridTickable, ICellContainer, IMEMonitorHandlerReceiver<IAEFluidStack>, IPriorityHost {
@@ -289,6 +290,9 @@ public class PartFluidStorageBus extends PartUpgradeable
this.resetCache(true);
this.resetCache();
}
} else if (te instanceof IFluidHandler) {
this.resetCache(true);
this.resetCache();
} else {
this.resetCache(false);
}