From 28ada065a6bea2497fa020e4dd93a156d6848645 Mon Sep 17 00:00:00 2001 From: rogo Date: Thu, 1 May 2025 22:50:35 +0200 Subject: [PATCH] fixed stuck pixels --- Scripts/Elements/Element.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Elements/Element.cs b/Scripts/Elements/Element.cs index 8ce8b33..f4928ef 100644 --- a/Scripts/Elements/Element.cs +++ b/Scripts/Elements/Element.cs @@ -92,7 +92,7 @@ public class Element{ if (Chunk.Get(Position + Vector2I.Down)?.Density < Density) Chunk.Swap(this, Position + Vector2I.Down); else if (Chunk.Get(Position + Vector2I.Down + randomDirection)?.Density < Density) - Chunk.Swap(this, Position + Vector2I.Down); + Chunk.Swap(this, Position + Vector2I.Down + randomDirection); } protected Vector2I RandomDirectionDown() {