122 {
123 if (!source_ent || !target_ent)
124 return false;
125
128 if ((barrelTarget && !barrelTarget.
IsOpen()) || (barrelSource && !barrelSource.
IsOpen()))
129 {
130 return false;
131 }
132
133 if (source_ent.GetIsFrozen())
134 {
135 return false;
136 }
137
138 float source_quantity = source_ent.GetQuantity();
139 if (source_quantity <= 0)
140 {
141
142 return false;
143 }
144
145 int source_liquid_type = source_ent.GetLiquidType();
146 if (source_liquid_type < 1)
147 {
148
149 return false;
150 }
151
153 {
154 return false;
155 }
156
157 return true;
158 }
static bool CanFillContainer(ItemBase container, int liquid_type, bool ignore_fullness_check=false)