mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-21 01:37:13 +07:00
Fixed #8924
This commit is contained in:
parent
7999eb4c4d
commit
b47a1b6d0d
@ -70,13 +70,16 @@ public class Puddles{
|
||||
|
||||
Puddle p = map.get(tile.pos());
|
||||
if(p == null || p.liquid == null){
|
||||
Puddle puddle = Puddle.create();
|
||||
puddle.tile = tile;
|
||||
puddle.liquid = liquid;
|
||||
puddle.amount = amount;
|
||||
puddle.set(ax, ay);
|
||||
map.put(tile.pos(), puddle);
|
||||
puddle.add();
|
||||
if(!Vars.net.client()){
|
||||
//do not create puddles clientside as that destroys syncing
|
||||
Puddle puddle = Puddle.create();
|
||||
puddle.tile = tile;
|
||||
puddle.liquid = liquid;
|
||||
puddle.amount = amount;
|
||||
puddle.set(ax, ay);
|
||||
map.put(tile.pos(), puddle);
|
||||
puddle.add();
|
||||
}
|
||||
}else if(p.liquid == liquid){
|
||||
p.accepting = Math.max(amount, p.accepting);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user