From 0714e9c59cdf84bd1ca66b675dd6eebab90b6f8b Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 29 Jun 2017 16:23:10 +1000 Subject: [PATCH] and fix glass on max border not being removed in freeze mode --- MCGalaxy/Games/Countdown/CountdownGame.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MCGalaxy/Games/Countdown/CountdownGame.cs b/MCGalaxy/Games/Countdown/CountdownGame.cs index ee8654732..1a242098a 100644 --- a/MCGalaxy/Games/Countdown/CountdownGame.cs +++ b/MCGalaxy/Games/Countdown/CountdownGame.cs @@ -176,10 +176,12 @@ namespace MCGalaxy.Games { void RemoveAllSquareBorders() { int maxX = Map.Width - 1, maxZ = Map.Length - 1; - for (int xx = 6; xx < maxX - 6; xx += 3) - Cuboid(xx - 1, 4, 4, xx - 1, 4, maxZ - 4, Block.air, Map); - for (int zz = 6; zz < maxZ - 6; zz += 3) - Cuboid(4, 4, zz - 1, maxX - 4, 4, zz - 1, Block.air, Map); + for (int xx = 6 - 1; xx <= Map.Width - 6; xx += 3) { + Cuboid(xx, 4, 4, xx, 4, maxZ - 4, Block.air, Map); + } + for (int zz = 6 - 1; zz <= Map.Length - 6; zz += 3) { + Cuboid(4, 4, zz, maxX - 4, 4, zz, Block.air, Map); + } } void RemoveSquares() {