fixed stuck pixels
This commit is contained in:
@@ -92,7 +92,7 @@ public class Element{
|
|||||||
if (Chunk.Get(Position + Vector2I.Down)?.Density < Density)
|
if (Chunk.Get(Position + Vector2I.Down)?.Density < Density)
|
||||||
Chunk.Swap(this, Position + Vector2I.Down);
|
Chunk.Swap(this, Position + Vector2I.Down);
|
||||||
else if (Chunk.Get(Position + Vector2I.Down + randomDirection)?.Density < Density)
|
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() {
|
protected Vector2I RandomDirectionDown() {
|
||||||
|
|||||||
Reference in New Issue
Block a user