From b47a1b6d0dce91efe217e859ec717bcbb4f35beb Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 12 Aug 2023 12:44:28 -0400 Subject: [PATCH] Fixed #8924 --- core/src/mindustry/entities/Puddles.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/core/src/mindustry/entities/Puddles.java b/core/src/mindustry/entities/Puddles.java index d878c7f28e..40526baf05 100644 --- a/core/src/mindustry/entities/Puddles.java +++ b/core/src/mindustry/entities/Puddles.java @@ -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);