mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-09-22 13:01:12 +03:00
Do not add liquid bars to blocks with 0 liquid capacity
This commit is contained in:
@@ -760,7 +760,7 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
}
|
||||
|
||||
//nothing was added, so it's safe to add a dynamic liquid bar (probably?)
|
||||
if(!added){
|
||||
if(!added && liquidCapacity > 0f){
|
||||
addLiquidBar(build -> build.liquids.current());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user