Fixed #8903
This commit is contained in:
@@ -1999,7 +1999,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
}else if(content instanceof Liquid liquid && liquids != null){
|
}else if(content instanceof Liquid liquid && liquids != null){
|
||||||
float amount = Mathf.clamp((float)value, 0f, block.liquidCapacity);
|
float amount = Mathf.clamp((float)value, 0f, block.liquidCapacity);
|
||||||
//decreasing amount is always allowed
|
//decreasing amount is always allowed
|
||||||
if(amount < liquids.get(liquid) || (acceptLiquid(self(), liquid) && (liquids.current() == liquid || liquids.currentAmount() <= 0.1f))){
|
if(amount < liquids.get(liquid) || (acceptLiquid(self(), liquid) && (liquids.current() == liquid || liquids.currentAmount() <= 0.1f || block.consumesLiquid(liquid)))){
|
||||||
liquids.set(liquid, amount);
|
liquids.set(liquid, amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -398,6 +398,9 @@ public class Tile implements Position, QuadTreeObject, Displayable{
|
|||||||
this.overlay = (Floor)block;
|
this.overlay = (Floor)block;
|
||||||
|
|
||||||
recache();
|
recache();
|
||||||
|
if(!world.isGenerating() && build != null){
|
||||||
|
build.onProximityUpdate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Sets the overlay without a recache. */
|
/** Sets the overlay without a recache. */
|
||||||
|
|||||||
Reference in New Issue
Block a user