void DrawMapRegion(DebugDrawMode mode, IServerPlayer player, IntMap map, string prefix, bool lerp, int regionX, int regionZ, int scale) { if (lerp) { int[] lerped = GameMath.BiLerpColorMap(map, scale); NoiseBase.DebugDrawBitmap(mode, lerped, map.InnerSize * scale, prefix + "-" + regionX + "-" + regionZ + "-l"); player.SendMessage(groupId, "Lerped " + prefix + " map generated.", EnumChatType.CommandSuccess); } else { NoiseBase.DebugDrawBitmap(mode, map.Data, map.Size, prefix + "-" + regionX + "-" + regionZ); player.SendMessage(groupId, "Original " + prefix + " map generated.", EnumChatType.CommandSuccess); } }