From 71366bcf95156daec485b8896ace4ba7907d8650 Mon Sep 17 00:00:00 2001 From: mirrorcult Date: Thu, 17 Mar 2022 11:42:25 -0700 Subject: [PATCH] Puddle error fix (#7165) --- Content.Client/Fluids/PuddleVisualizer.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Content.Client/Fluids/PuddleVisualizer.cs b/Content.Client/Fluids/PuddleVisualizer.cs index 8189e06a6c..72e04e7079 100644 --- a/Content.Client/Fluids/PuddleVisualizer.cs +++ b/Content.Client/Fluids/PuddleVisualizer.cs @@ -72,14 +72,12 @@ namespace Content.Client.Fluids if (forceWetFloorSprite) { //Change the puddle's sprite to the wet floor sprite - spriteComponent.LayerSetRSI(0, "Fluids/wet_floor_sparkles.rsi"); - spriteComponent.LayerSetState(0, "sparkles"); + spriteComponent.LayerSetState(0, "sparkles", "Fluids/wet_floor_sparkles.rsi"); spriteComponent.Color = spriteComponent.Color.WithAlpha(0.25f); //should be mostly transparent. } else { - spriteComponent.LayerSetRSI(0, "Fluids/smear.rsi"); - spriteComponent.LayerSetState(0, "smear-0"); // TODO: need a way to implement the random smears again when the mop creates new puddles. + spriteComponent.LayerSetState(0, "smear-0", "Fluids/smear.rsi"); // TODO: need a way to implement the random smears again when the mop creates new puddles. } }