diff --git a/fCraft/Drawing/DrawOps/Fill3DDrawOperation.cs b/fCraft/Drawing/DrawOps/Fill3DDrawOperation.cs index e6f1426..dec6798 100644 --- a/fCraft/Drawing/DrawOps/Fill3DDrawOperation.cs +++ b/fCraft/Drawing/DrawOps/Fill3DDrawOperation.cs @@ -153,8 +153,8 @@ public sealed class Fill3DDrawOperation : DrawOperation { yield return coords; if (coords.X - 1 >= Bounds.XMin) stack.Push(index - 1); if (coords.X + 1 <= Bounds.XMax) stack.Push(index + 1); - if (coords.Y - 1 >= Bounds.YMin) stack.Push(index + width); - if (coords.Y + 1 <= Bounds.YMax) stack.Push(index - width); + if (coords.Y - 1 >= Bounds.YMin) stack.Push(index - width); + if (coords.Y + 1 <= Bounds.YMax) stack.Push(index + width); if (coords.Z - 1 >= Bounds.ZMin) stack.Push(index - width * length); if (coords.Z + 1 <= Bounds.ZMax) stack.Push(index + width * length); }